summaryrefslogtreecommitdiffstats
path: root/src/sp-text.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2014-07-25 21:23:13 +0000
committerapenner <penner@vaxxine.com>2014-07-25 21:23:13 +0000
commit962b4e5a31b1128cdb9dfcccac87e7449a3351f1 (patch)
tree74f1ca1973f86665a686fa97a2933a2ec88e126d /src/sp-text.cpp
parentsync with libTere version of text_reassemble.c (diff)
downloadinkscape-962b4e5a31b1128cdb9dfcccac87e7449a3351f1.tar.gz
inkscape-962b4e5a31b1128cdb9dfcccac87e7449a3351f1.zip
refresh text objects when clipping (Bug 1339305)
Fixed bugs: - https://launchpad.net/bugs/1339305 (bzr r13470)
Diffstat (limited to 'src/sp-text.cpp')
-rw-r--r--src/sp-text.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp
index bbc7ec43d..9a7f0b7a0 100644
--- a/src/sp-text.cpp
+++ b/src/sp-text.cpp
@@ -278,6 +278,7 @@ Inkscape::XML::Node *SPText::write(Inkscape::XML::Document *xml_doc, Inkscape::X
}
this->attributes.writeTo(repr);
+ this->rebuildLayout(); // copied from update(), see LP Bug 1339305
// deprecated attribute, but keep it around for backwards compatibility
if (this->style->line_height.set && !this->style->line_height.inherit && !this->style->line_height.normal && this->style->line_height.unit == SP_CSS_UNIT_PERCENT) {