summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-01-25 18:50:23 +0000
committertavmjong-free <tavmjong@free.fr>2017-01-25 18:50:23 +0000
commit2bf5058630b43a23e2a735a6b69487214c7d3f95 (patch)
treed4ce225c1f5007a19b5bfb99dc442168d0450b75 /src/libnrtype
parentFix build on tests. Thanks Mc (diff)
downloadinkscape-2bf5058630b43a23e2a735a6b69487214c7d3f95.tar.gz
inkscape-2bf5058630b43a23e2a735a6b69487214c7d3f95.zip
Fix disappearing text when outer line-height is zero.
(bzr r15452)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG-Scanline-Makers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/Layout-TNG-Scanline-Makers.cpp b/src/libnrtype/Layout-TNG-Scanline-Makers.cpp
index 0d6112d19..a57aaa3e4 100644
--- a/src/libnrtype/Layout-TNG-Scanline-Makers.cpp
+++ b/src/libnrtype/Layout-TNG-Scanline-Makers.cpp
@@ -124,7 +124,7 @@ std::vector<Layout::ScanlineMaker::ScanRun> Layout::ShapeScanlineMaker::makeScan
FloatLigne line_rasterization;
FloatLigne line_decent_length_runs;
float line_text_height = (float)(line_height.emSize());
- if (line_text_height == 0.0)
+ if (line_text_height < 0.001)
line_text_height = 0.001; // Scan() doesn't work for zero height so this will have to do
_current_line_height = (float)line_height.emSize();