summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2012-09-10 11:40:54 +0000
committerapenner <penner@vaxxine.com>2012-09-10 11:40:54 +0000
commitc957efc129a9e0b0ebf26a7bbdbc4ee8531b3d05 (patch)
tree8e9fb35fb0871d61087a4527df1953a5bbdd77ac /src
parentFix for 649441 : Extension dialogs without live preview should not be modal (diff)
downloadinkscape-c957efc129a9e0b0ebf26a7bbdbc4ee8531b3d05.tar.gz
inkscape-c957efc129a9e0b0ebf26a7bbdbc4ee8531b3d05.zip
pdf import. move style attribute from <tspan> node to <text> node (Bug 219709)
Fixed bugs: - https://launchpad.net/bugs/219709 (bzr r11661)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/pdfinput/svg-builder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
index e3d0a80ac..f0de3b709 100644
--- a/src/extension/internal/pdfinput/svg-builder.cpp
+++ b/src/extension/internal/pdfinput/svg-builder.cpp
@@ -1300,7 +1300,8 @@ void SvgBuilder::_flushText() {
sp_repr_css_set_property(glyph.style, "-inkscape-font-specification", properFontSpec.c_str());
// Set style and unref SPCSSAttr if it won't be needed anymore
- sp_repr_css_change(tspan_node, glyph.style, "style");
+ // assume all <tspan> nodes in a <text> node share the same style
+ sp_repr_css_change(text_node, glyph.style, "style");
if ( glyph.style_changed && i != _glyphs.begin() ) { // Free previous style
sp_repr_css_attr_unref((*prev_iterator).style);
}