summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/text-tool.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-09-16 12:03:48 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-09-16 12:03:48 +0000
commit42ceb86a187d0e0714c67a420b84726fda5fae91 (patch)
tree79a981c75fafb06697ae3ee2c01e9ee5e2074fd0 /src/ui/tools/text-tool.cpp
parentUpdate hr.po (diff)
downloadinkscape-42ceb86a187d0e0714c67a420b84726fda5fae91.tar.gz
inkscape-42ceb86a187d0e0714c67a420b84726fda5fae91.zip
Allow paste on flowbox at same sice of origin, also improve creation to get rid of transforms on origin
Diffstat (limited to 'src/ui/tools/text-tool.cpp')
-rw-r--r--src/ui/tools/text-tool.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp
index a9a66d64f..161b20aa2 100644
--- a/src/ui/tools/text-tool.cpp
+++ b/src/ui/tools/text-tool.cpp
@@ -685,7 +685,14 @@ bool TextTool::root_handler(GdkEvent* event) {
/* Set style */
sp_desktop_apply_style_tool(desktop, ft->getRepr(), "/tools/text", true);
-
+ SPCSSAttr *css = sp_repr_css_attr(ft->getRepr(), "style" );
+ Geom::Affine const local(ft->i2doc_affine());
+ double const ex(local.descrim());
+ if ( (ex != 0.0) && (ex != 1.0) ) {
+ sp_css_attr_scale(css, 1/ex);
+ }
+ ft->setCSS(css,"style");
+ sp_repr_css_attr_unref(css);
ft->updateRepr();
desktop->getSelection()->set(ft);