diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-09-16 14:41:18 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-09-16 14:41:18 +0000 |
| commit | c239b8d513fae662a4e3be85f85efb794d98d83d (patch) | |
| tree | c2528a5760b21acc685f13cde3b5426284d6fc5b /src/ui/toolbar | |
| parent | Allow paste on flowbox at same sice of origin, also improve creation to get r... (diff) | |
| download | inkscape-c239b8d513fae662a4e3be85f85efb794d98d83d.tar.gz inkscape-c239b8d513fae662a4e3be85f85efb794d98d83d.zip | |
Allow paste preserving new lines into a flowtext element
Diffstat (limited to 'src/ui/toolbar')
| -rw-r--r-- | src/ui/toolbar/text-toolbar.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/toolbar/text-toolbar.cpp b/src/ui/toolbar/text-toolbar.cpp index b0af522d3..aa9c0fecc 100644 --- a/src/ui/toolbar/text-toolbar.cpp +++ b/src/ui/toolbar/text-toolbar.cpp @@ -2296,6 +2296,9 @@ void TextToolbar::prepare_inner() if (text) { text->hide_shape_inside(); } + if (flowtext) { + flowtext->fix_overflow_flowregion(false); + } void *rawptr_start = nullptr; void *rawptr_end = nullptr; layout->getSourceOfCharacter(wrap_start, &rawptr_start); @@ -2303,6 +2306,9 @@ void TextToolbar::prepare_inner() if (text) { text->show_shape_inside(); } + if (flowtext) { + flowtext->fix_overflow_flowregion(true); + } if (!rawptr_start || !rawptr_end || !SP_IS_OBJECT(rawptr_start)|| !SP_IS_OBJECT(rawptr_end)) { return; } |
