Code

Fixed bug [ 1610103 ]: font-size px unit missing after font family change
[inkscape.git] / src / dialogs / text-edit.cpp
index a44860ee394971a78782f14ad1c543c7294bc6a0..76cf310b0a0a3b374e0fec8841c9d9aaf8207fab 100644 (file)
@@ -8,7 +8,7 @@
  *   bulia byak <buliabyak@users.sf.net>
  *   Johan Engelen <goejendaagh@zonnet.nl>
  *
- * Copyright (C) 1999-2006 Authors
+ * Copyright (C) 1999-2007 Authors
  * Copyright (C) 2000-2001 Ximian, Inc.
  *
  * Released under GNU GPL, read the file 'COPYING' for more information
@@ -530,7 +530,7 @@ sp_get_text_dialog_style ()
                                        sp_repr_css_set_property (css, "font-variant", c);
                                        
                                        Inkscape::CSSOStringStream os;
-                                       os << sp_font_selector_get_size (SP_FONT_SELECTOR (fontsel));
+                                       os << sp_font_selector_get_size (SP_FONT_SELECTOR (fontsel)) << "px"; // must specify px, see inkscape bug 1221626 and 1610103
                                        sp_repr_css_set_property (css, "font-size", os.str().c_str());
                                        
                                        font->Unref();