diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-04-15 12:59:25 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-04-15 12:59:25 +0000 |
| commit | f7fdaa03866b53fcedff8ee7c90462493807e4f7 (patch) | |
| tree | 53ea2c9018847c6c806e35715e1da6873b47c1bc /src/object/sp-flowtext.cpp | |
| parent | Fix for line positioning in wrapped multi-line text. (diff) | |
| download | inkscape-f7fdaa03866b53fcedff8ee7c90462493807e4f7.tar.gz inkscape-f7fdaa03866b53fcedff8ee7c90462493807e4f7.zip | |
Make sure Layout.wrap_mode is initialized and defined.
Diffstat (limited to 'src/object/sp-flowtext.cpp')
| -rw-r--r-- | src/object/sp-flowtext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object/sp-flowtext.cpp b/src/object/sp-flowtext.cpp index 0db7ab192..5d46c7b1e 100644 --- a/src/object/sp-flowtext.cpp +++ b/src/object/sp-flowtext.cpp @@ -338,6 +338,8 @@ void SPFlowtext::_buildLayoutInput(SPObject *root, Shape const *exclusion_shape, if (dynamic_cast<SPFlowpara *>(root)) { + layout.wrap_mode = Inkscape::Text::Layout::WRAP_SHAPE_INSIDE; + layout.strut.reset(); if (style) { font_instance *font = font_factory::Default()->FaceFromStyle( style ); |
