From: johanengelen Date: Tue, 2 Jan 2007 15:17:52 +0000 (+0000) Subject: Fixed bug [ 1610103 ]: font-size px unit missing after font family change X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fe737f842862577bf0931c0047b9dff72453a1f7;p=inkscape.git Fixed bug [ 1610103 ]: font-size px unit missing after font family change --- diff --git a/src/dialogs/text-edit.cpp b/src/dialogs/text-edit.cpp index a44860ee3..76cf310b0 100644 --- a/src/dialogs/text-edit.cpp +++ b/src/dialogs/text-edit.cpp @@ -8,7 +8,7 @@ * bulia byak * Johan Engelen * - * 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();