summaryrefslogtreecommitdiffstats
path: root/src/widgets/text-toolbar.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-09-05 12:56:53 +0000
committertavmjong-free <tavmjong@free.fr>2016-09-05 12:56:53 +0000
commit4bcca9f2bf8e89d1589833112a51d5db45225037 (patch)
tree3d083e80c2e530c2a0049e14546843595570e2ec /src/widgets/text-toolbar.cpp
parentBug#744612. Add minimun radius value to minimize hangs (diff)
downloadinkscape-4bcca9f2bf8e89d1589833112a51d5db45225037.tar.gz
inkscape-4bcca9f2bf8e89d1589833112a51d5db45225037.zip
Save new 'x' and 'y' attribute values when 'line-height' changed.
Partial fix for bug #1590141. (bzr r15106)
Diffstat (limited to 'src/widgets/text-toolbar.cpp')
-rw-r--r--src/widgets/text-toolbar.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/widgets/text-toolbar.cpp b/src/widgets/text-toolbar.cpp
index 0160bcac7..0ce2db4b2 100644
--- a/src/widgets/text-toolbar.cpp
+++ b/src/widgets/text-toolbar.cpp
@@ -567,6 +567,15 @@ static void sp_text_lineheight_value_changed( GtkAdjustment *adj, GObject *tbl )
if(modmade) {
DocumentUndo::maybeDone(SP_ACTIVE_DESKTOP->getDocument(), "ttb:line-height", SP_VERB_NONE,
_("Text: Change line-height"));
+ // Call to Document::maybeDone() causes rebuild of text layout (with all proper style
+ // cascading, etc.). For multi-line text with sodipodi::role="line", we must explicitly
+ // save new <tspan> 'x' and 'y' attribute values by calling updateRepr().
+ // Partial fix for bug #1590141.
+ for(auto i=itemlist.begin();i!=itemlist.end(); ++i){
+ if (SP_IS_TEXT (*i)) {
+ (*i)->updateRepr();
+ }
+ }
}
// If no selected objects, set default.