diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-01-25 18:50:23 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-01-25 18:50:23 +0000 |
| commit | 2bf5058630b43a23e2a735a6b69487214c7d3f95 (patch) | |
| tree | d4ce225c1f5007a19b5bfb99dc442168d0450b75 /src/libnrtype | |
| parent | Fix build on tests. Thanks Mc (diff) | |
| download | inkscape-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.cpp | 2 |
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(); |
