diff options
| author | Matthew Petroff <matthew@mpetroff.net> | 2013-09-11 03:50:49 +0000 |
|---|---|---|
| committer | Matthew Petroff <matthew@mpetroff.net> | 2013-09-11 03:50:49 +0000 |
| commit | 282e965e030e7a1e9ae3455f877f7e8f8e1ea8dd (patch) | |
| tree | 572b1097db43a42c1fb44a78f107c459e2c524ec /src/sp-text.cpp | |
| parent | Fix bug that added transforms to new objects. (diff) | |
| download | inkscape-282e965e030e7a1e9ae3455f877f7e8f8e1ea8dd.tar.gz inkscape-282e965e030e7a1e9ae3455f877f7e8f8e1ea8dd.zip | |
Fix document unit change for 3d boxes and (mostly) for text on path.
(bzr r12475.1.12)
Diffstat (limited to 'src/sp-text.cpp')
| -rw-r--r-- | src/sp-text.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 2e2bf15bc..05a1827fe 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -109,6 +109,8 @@ sp_text_init (SPText *text) { new (&text->layout) Inkscape::Text::Layout; new (&text->attributes) TextTagAttributes; + + text->_optimizeTextpathText = false; } static void @@ -427,8 +429,13 @@ sp_text_set_transform (SPItem *item, Geom::Affine const &xform) SPText *text = SP_TEXT(item); // we cannot optimize textpath because changing its fontsize will break its match to the path - if (SP_IS_TEXT_TEXTPATH (text)) - return xform; + if (SP_IS_TEXT_TEXTPATH (text)) { + if (!text->_optimizeTextpathText) { + return xform; + } else { + text->_optimizeTextpathText = false; + } + } /* This function takes care of scaling & translation only, we return whatever parts we can't handle. */ |
