summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2009-02-24 00:02:46 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2009-02-24 00:02:46 +0000
commit122682d2c36c8c70ff99010539074822673ace3b (patch)
tree4b8ab310c30bee0ffcb37bca4b3f501e47e70652 /src/sp-text.cpp
parentfix font size jump when unflowing flowed text (diff)
downloadinkscape-122682d2c36c8c70ff99010539074822673ace3b.tar.gz
inkscape-122682d2c36c8c70ff99010539074822673ace3b.zip
fix scaling of text without font size set
(bzr r7358)
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index abfb9ca65..91a8a0361 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -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;