Code

initialize default value to zero when it is not provided as parameter to the combobox...
authorjucablues <jucablues@users.sourceforge.net>
Tue, 19 Feb 2008 21:56:47 +0000 (21:56 +0000)
committerjucablues <jucablues@users.sourceforge.net>
Tue, 19 Feb 2008 21:56:47 +0000 (21:56 +0000)
src/ui/widget/combo-enums.h

index 75760ab123c5eaa3f934ff5aeafeb0637e680a74..cab93f55783c47c7a3a9acea2745e4d449877107 100644 (file)
@@ -47,7 +47,7 @@ public:
     }
 
     ComboBoxEnum(const Util::EnumDataConverter<E>& c, const SPAttributeEnum a = SP_ATTR_INVALID)
-        : AttrWidget(a), setProgrammatically(false), _converter(c)
+        : AttrWidget(a, (unsigned int) 0), setProgrammatically(false), _converter(c)
     {
         signal_changed().connect(signal_attr_changed().make_slot());