diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2015-08-17 01:16:35 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2015-08-17 01:16:35 +0000 |
| commit | 9580930d2c494fa5149399fb5078d8e92e8b8083 (patch) | |
| tree | 3b79ca6b67b11820d9a7afb0b260ae54580f3366 /src | |
| parent | import images with dpi from file : xscale and yscale were not rounded but flo... (diff) | |
| download | inkscape-9580930d2c494fa5149399fb5078d8e92e8b8083.tar.gz inkscape-9580930d2c494fa5149399fb5078d8e92e8b8083.zip | |
added a check that is present in surrounding code, but not on this particular line, which is most infortunate, since it led to a crash.
Fixed bugs:
- https://launchpad.net/bugs/1445204
(bzr r14308)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnrtype/Layout-TNG-OutIter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/Layout-TNG-OutIter.cpp b/src/libnrtype/Layout-TNG-OutIter.cpp index 707897f50..137fe0a0f 100644 --- a/src/libnrtype/Layout-TNG-OutIter.cpp +++ b/src/libnrtype/Layout-TNG-OutIter.cpp @@ -507,7 +507,7 @@ void Layout::queryCursorShape(iterator const &it, Geom::Point &position, double position[Geom::Y] = span->line(this).baseline_y + span->baseline_shift; } // up to now *position is the baseline point, not the final point which will be the bottom of the descent - double vertical_scale = _glyphs.back().vertical_scale; + double vertical_scale = _glyphs.empty() ? 1.0 : _glyphs.back().vertical_scale; if (_directions_are_orthogonal(_blockProgression(), TOP_TO_BOTTOM)) { height = vertical_scale * span->line_height.ascent + span->line_height.descent; |
