summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9d737f)
raw | patch | inline | side by side (parent: d9d737f)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 24 Feb 2009 00:01:20 +0000 (00:01 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 24 Feb 2009 00:01:20 +0000 (00:01 +0000) |
src/text-chemistry.cpp | patch | blob | history |
diff --git a/src/text-chemistry.cpp b/src/text-chemistry.cpp
index f1348ad670c1393efd6c8cf1d47a6c4d2141aa1b..f574b69fb14a6628f693373dac3927d2c9fc27e1 100644 (file)
--- a/src/text-chemistry.cpp
+++ b/src/text-chemistry.cpp
SPItem *flowtext = SP_ITEM(items->data);
+ // we discard transform when unflowing, but we must preserve expansion which is visible as
+ // font size multiplier
+ double ex = (flowtext->transform).descrim();
+
if (sp_te_get_string_multiline(flowtext) == NULL) { // flowtext is empty
continue;
}
SP_OBJECT_REPR(SP_OBJECT_PARENT(flowtext))->appendChild(rtext);
SPObject *text_object = doc->getObjectByRepr(rtext);
+ // restore the font size multiplier from the flowtext's transform
+ SP_TEXT(text_object)->_adjustFontsizeRecursive(SP_ITEM(text_object), ex);
+
new_objs = g_slist_prepend (new_objs, text_object);
old_objs = g_slist_prepend (old_objs, flowtext);