summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-09-05 23:20:16 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-09-07 21:48:33 +0000
commitf62dba8533e6c2f944956fa304205513abbcabbe (patch)
tree7156094ee2b11b217e4b363c064b8af71e0735e8 /src/libnrtype
parentPrepare for beta (diff)
downloadinkscape-f62dba8533e6c2f944956fa304205513abbcabbe.tar.gz
inkscape-f62dba8533e6c2f944956fa304205513abbcabbe.zip
More improvements to line height.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG-OutIter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libnrtype/Layout-TNG-OutIter.cpp b/src/libnrtype/Layout-TNG-OutIter.cpp
index 7d7ee98f0..88ce28db9 100644
--- a/src/libnrtype/Layout-TNG-OutIter.cpp
+++ b/src/libnrtype/Layout-TNG-OutIter.cpp
@@ -183,11 +183,13 @@ Layout::iterator Layout::sourceToIterator(void *source_cookie /*, Glib::ustring:
unsigned char_index = _sourceToCharacter(source_index);
+ // Fix a bug when hidding content in flow box element
+ if (char_index >= _characters.size())
+ return end();
+
if (_input_stream[source_index]->Type() != TEXT_SOURCE)
return iterator(this, char_index);
- if (char_index >= _characters.size())
- return end();
return iterator(this, char_index);
/* This code was never used, the text_iterator argument was "NULL" in all calling code
InputStreamTextSource const *text_source = static_cast<InputStreamTextSource const *>(_input_stream[source_index]);