ferdnyc / rpms / inkscape

Forked from rpms/inkscape 5 years ago
Clone
87a998f
--- src/libnrtype/Layout-TNG-OutIter.cpp.orig	2019-01-11 19:56:12.701209914 +0100
87a998f
+++ src/libnrtype/Layout-TNG-OutIter.cpp	2019-01-11 19:58:19.624114664 +0100
87a998f
@@ -46,7 +46,8 @@
87a998f
             best_x_difference = this_x_difference;
87a998f
         }
87a998f
     }
87a998f
-    if (best_char_index == -1) return iterator(this, char_index);
87a998f
+    if (best_char_index == -1) best_char_index = char_index;
87a998f
+    if (best_char_index == _characters.size()) return end();
87a998f
     return iterator(this, best_char_index);
87a998f
 }
87a998f