Code

Avoid crash by uninitialized perspectives.
[inkscape.git] / src / number-opt-number.h
index 51966a101b937b38d45864d6ec8cc84880c1b905..0025f2d07b73e51911e79c174cfb4766b72761a7 100644 (file)
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <glib.h>
 #include <glib/gprintf.h>
 //todo: use glib instead of stdlib
 #include <stdlib.h>
 #include "svg/stringstream.h"
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
+
+gdouble fixed_g_ascii_strtod (const gchar *nptr, gchar **endptr);
 
 class NumberOptNumber {
 
@@ -70,6 +73,14 @@ public:
         number = num;
     }
 
+    bool optNumIsSet(){
+        return optNumber_set;
+    }
+
+    bool numIsSet(){
+        return _set;
+    }
+    
     gchar *getValueString()
     {
         Inkscape::SVGOStringStream os;