Code

bug 1412504: infinite loop when moving a word to the left when already at the start...
authorcyreve <cyreve@users.sourceforge.net>
Fri, 10 Feb 2006 21:30:49 +0000 (21:30 +0000)
committercyreve <cyreve@users.sourceforge.net>
Fri, 10 Feb 2006 21:30:49 +0000 (21:30 +0000)
src/libnrtype/Layout-TNG-OutIter.cpp

index 3dd043a682de1f927df8f3ef24f59a2d9475f57e..8c525084e99991131fad2f3ab71aab4fb4b9d88f 100755 (executable)
@@ -753,7 +753,7 @@ bool Layout::iterator::prevLineCursor()
         for ( ; ; ) {                                                                            \
             if (_char_index == 0) {                                                              \
                 _glyph_index = 0;                                                                \
-                return true;                                                                     \
+                return false;                                                                    \
             }                                                                                    \
             _char_index--;                                                                       \
             if (_parent_layout->_characters[_char_index].char_attributes.attr) break;            \