diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-09-12 08:45:34 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-09-12 08:45:34 +0000 |
| commit | caf9af7440c6812b47d314b6049a24c56c821004 (patch) | |
| tree | 7ead8eeffc185f5a90fc78d8ee1831403c48a1c0 /src/libnrtype | |
| parent | Fix non changing value on combobox. This can also be used in other toolbars (diff) | |
| download | inkscape-caf9af7440c6812b47d314b6049a24c56c821004.tar.gz inkscape-caf9af7440c6812b47d314b6049a24c56c821004.zip | |
Fix crash when overflowing flowed text
Diffstat (limited to 'src/libnrtype')
| -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 88ce28db9..f9a0c261c 100644 --- a/src/libnrtype/Layout-TNG-OutIter.cpp +++ b/src/libnrtype/Layout-TNG-OutIter.cpp @@ -543,7 +543,7 @@ void Layout::queryCursorShape(iterator const &it, Geom::Point &position, double void Layout::getSourceOfCharacter(iterator const &it, void **source_cookie, Glib::ustring::iterator *text_iterator) const { - if (it._char_index == _characters.size()) { + if (it._char_index >= _characters.size()) { *source_cookie = nullptr; return; } |
