summaryrefslogtreecommitdiffstats
path: root/src/sp-tspan.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-01-16 16:18:45 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-01-16 16:18:45 +0000
commit03cb69220632b0c674efff5be3aab8be35d23eff (patch)
tree464a1f74c57b796604ceb38c1687d579d2891800 /src/sp-tspan.cpp
parentupdate to trunk (diff)
parentTest implementation of 'shape-padding'. (diff)
downloadinkscape-03cb69220632b0c674efff5be3aab8be35d23eff.tar.gz
inkscape-03cb69220632b0c674efff5be3aab8be35d23eff.zip
update to trunk
(bzr r13708.1.7)
Diffstat (limited to 'src/sp-tspan.cpp')
-rw-r--r--src/sp-tspan.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sp-tspan.cpp b/src/sp-tspan.cpp
index c3f7689e7..147efff33 100644
--- a/src/sp-tspan.cpp
+++ b/src/sp-tspan.cpp
@@ -42,6 +42,7 @@
#include "style.h"
#include "xml/repr.h"
#include "document.h"
+#include "2geom/transforms.h"
#include "sp-factory.h"
@@ -447,7 +448,8 @@ void sp_textpath_to_text(SPObject *tp)
}
Geom::Point xy = bbox->min();
-
+ xy *= tp->document->getDocumentScale().inverse(); // Convert to user-units.
+
// make a list of textpath children
GSList *tp_reprs = NULL;
@@ -468,7 +470,7 @@ void sp_textpath_to_text(SPObject *tp)
tp->deleteObject();
g_slist_free(tp_reprs);
- // set x/y on text
+ // set x/y on text (to be near where it was when on path)
/* fixme: Yuck, is this really the right test? */
if (xy[Geom::X] != 1e18 && xy[Geom::Y] != 1e18) {
sp_repr_set_svg_double(text->getRepr(), "x", xy[Geom::X]);