summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-04-15 12:59:25 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-04-15 12:59:25 +0000
commitf7fdaa03866b53fcedff8ee7c90462493807e4f7 (patch)
tree53ea2c9018847c6c806e35715e1da6873b47c1bc /src/libnrtype
parentFix for line positioning in wrapped multi-line text. (diff)
downloadinkscape-f7fdaa03866b53fcedff8ee7c90462493807e4f7.tar.gz
inkscape-f7fdaa03866b53fcedff8ee7c90462493807e4f7.zip
Make sure Layout.wrap_mode is initialized and defined.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libnrtype/Layout-TNG.cpp b/src/libnrtype/Layout-TNG.cpp
index e937e9da9..f31dc9d02 100644
--- a/src/libnrtype/Layout-TNG.cpp
+++ b/src/libnrtype/Layout-TNG.cpp
@@ -17,9 +17,10 @@ namespace Text {
const gunichar Layout::UNICODE_SOFT_HYPHEN = 0x00AD;
const double Layout::LINE_HEIGHT_NORMAL = 1.25;
-Layout::Layout() :
- _input_truncated(false),
- _path_fitted(nullptr)
+Layout::Layout()
+ : _input_truncated(false)
+ , _path_fitted(nullptr)
+ , wrap_mode(WRAP_NONE)
{
textLength._set = false;
textLengthMultiplier = 1;