Code

CSS length attributes must have units.
authortavmjong-free <tavmjong@free.fr>
Sat, 10 Jul 2010 08:36:42 +0000 (10:36 +0200)
committertavmjong-free <tavmjong@free.fr>
Sat, 10 Jul 2010 08:36:42 +0000 (10:36 +0200)
src/widgets/toolbox.cpp

index b68d8404dc04deb4c5824acec929d2baaa5a9c23..bdf1e6ff2a11b094847bd934745a46795c608ab8 100644 (file)
@@ -6861,7 +6861,7 @@ static void sp_text_wordspacing_value_changed( GtkAdjustment *adj, GObject *tbl
     // Set css word-spacing
     SPCSSAttr *css = sp_repr_css_attr_new ();
     Inkscape::CSSOStringStream osfs;
-    osfs << adj->value;
+    osfs << adj->value << "px"; // For now always use px
     sp_repr_css_set_property (css, "word-spacing", osfs.str().c_str());
 
     // Apply word-spacing to selected objects.
@@ -6900,7 +6900,7 @@ static void sp_text_letterspacing_value_changed( GtkAdjustment *adj, GObject *tb
     // Set css letter-spacing
     SPCSSAttr *css = sp_repr_css_attr_new ();
     Inkscape::CSSOStringStream osfs;
-    osfs << adj->value;
+    osfs << adj->value << "px";  // For now always use px
     sp_repr_css_set_property (css, "letter-spacing", osfs.str().c_str());
 
     // Apply letter-spacing to selected objects.