diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-09-16 12:03:48 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-09-16 12:03:48 +0000 |
| commit | 42ceb86a187d0e0714c67a420b84726fda5fae91 (patch) | |
| tree | 79a981c75fafb06697ae3ee2c01e9ee5e2074fd0 /src/object/sp-flowtext.cpp | |
| parent | Update hr.po (diff) | |
| download | inkscape-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/object/sp-flowtext.cpp')
| -rw-r--r-- | src/object/sp-flowtext.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/object/sp-flowtext.cpp b/src/object/sp-flowtext.cpp index 5d46c7b1e..05e06cff5 100644 --- a/src/object/sp-flowtext.cpp +++ b/src/object/sp-flowtext.cpp @@ -666,7 +666,10 @@ SPItem *create_flowtext_with_internal_frame (SPDesktop *desktop, Geom::Point p0, Geom::Coord const w = x1 - x0; Geom::Coord const h = y1 - y0; + SPItem *item = dynamic_cast<SPItem *>(desktop->currentLayer()); + g_assert(item != nullptr); rect->setPosition(x0, y0, w, h); + rect->doWriteTransform(item->i2doc_affine().inverse(), nullptr, true); rect->updateRepr(); Inkscape::XML::Node *para_repr = xml_doc->createElement("svg:flowPara"); @@ -682,11 +685,6 @@ SPItem *create_flowtext_with_internal_frame (SPDesktop *desktop, Geom::Point p0, Inkscape::GC::release(para_repr); Inkscape::GC::release(rect_repr); - - SPItem *item = dynamic_cast<SPItem *>(desktop->currentLayer()); - g_assert(item != nullptr); - ft_item->transform = item->i2doc_affine().inverse(); - return ft_item; } |
