diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-09-06 22:54:24 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2019-09-07 21:48:33 +0000 |
| commit | 94dccfb58d67d152032b7a2fb21851b9938d370e (patch) | |
| tree | a8c298b2bbb49036b1e369d8d11cada04c018522 /src/ui/tools | |
| parent | More improvements to line height. (diff) | |
| download | inkscape-94dccfb58d67d152032b7a2fb21851b9938d370e.tar.gz inkscape-94dccfb58d67d152032b7a2fb21851b9938d370e.zip | |
Prepared for beta. Fixed blocking bug
Diffstat (limited to 'src/ui/tools')
| -rw-r--r-- | src/ui/tools/text-tool.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index 7c87b8226..3c2b5400b 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -664,7 +664,14 @@ bool TextTool::root_handler(GdkEvent* event) { /* Set style */ sp_desktop_apply_style_tool(desktop, text->getRepr(), "/tools/text", true); - + SPCSSAttr *css = sp_repr_css_attr(text->getRepr(), "style" ); + Geom::Affine const local(text->i2doc_affine()); + double const ex(local.descrim()); + if ( (ex != 0.0) && (ex != 1.0) ) { + sp_css_attr_scale(css, 1/ex); + } + text->setCSS(css,"style"); + sp_repr_css_attr_unref(css); /* Restore "shape-inside" */ text->style->shape_inside.read( shape_inside ); g_free( shape_inside ); |
