summaryrefslogtreecommitdiffstats
path: root/addon/doxywizard/inputstring.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-07 19:55:05 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-03-07 19:55:05 (GMT)
commitb43cd6311a712c01c2c8297fa00809730e504d70 (patch)
tree74a4cb6c6c83c3b41a92ba1da8df0235abd2dafe /addon/doxywizard/inputstring.cpp
parent95fd5f1c991ee66f7122801276a133ebfce86aaa (diff)
downloadDoxygen-b43cd6311a712c01c2c8297fa00809730e504d70.zip
Doxygen-b43cd6311a712c01c2c8297fa00809730e504d70.tar.gz
Doxygen-b43cd6311a712c01c2c8297fa00809730e504d70.tar.bz2
Release-1.5.5-20080307
Diffstat (limited to 'addon/doxywizard/inputstring.cpp')
-rw-r--r--addon/doxywizard/inputstring.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/addon/doxywizard/inputstring.cpp b/addon/doxywizard/inputstring.cpp
index ffe4398..03f7098 100644
--- a/addon/doxywizard/inputstring.cpp
+++ b/addon/doxywizard/inputstring.cpp
@@ -170,14 +170,17 @@ void InputString::init()
{
if (sm==StringFixed)
{
- int *itemIndex = m_values->find(str);
- if (itemIndex)
+ if (m_values)
{
- com->setCurrentItem(*itemIndex);
- }
- else
- {
- com->setCurrentItem(0);
+ int *itemIndex = m_values->find(str);
+ if (itemIndex)
+ {
+ com->setCurrentItem(*itemIndex);
+ }
+ else
+ {
+ com->setCurrentItem(0);
+ }
}
}
else