Code

fix scaling of text without font size set
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Feb 2009 00:02:46 +0000 (00:02 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 24 Feb 2009 00:02:46 +0000 (00:02 +0000)
src/sp-text.cpp

index abfb9ca6582c5b3841ff94c652c8a2fa8bc9a0b8..91a8a03617247c3b567569edb284ceb41534a356 100644 (file)
@@ -604,8 +604,8 @@ void SPText::_adjustFontsizeRecursive(SPItem *item, double ex, bool is_root)
     if (style && !NR_DF_TEST_CLOSE (ex, 1.0, NR_EPSILON)) {
         if (!style->font_size.set && is_root) {
             style->font_size.set = 1;
-            style->font_size.type = SP_FONT_SIZE_LENGTH;
         }
+        style->font_size.type = SP_FONT_SIZE_LENGTH;
         style->font_size.computed *= ex;
         style->letter_spacing.computed *= ex;
         style->word_spacing.computed *= ex;