]> git.lyx.org Git - features.git/blobdiff - src/TextMetrics.cpp
brkstr2str_pos: avoid case where length is negative
[features.git] / src / TextMetrics.cpp
index 19a5e8f1476fa91e112ee918c2adc6677ce83d3d..f68292aa6423a51ab5b3ec0f10cf2e7dd2218ad1 100644 (file)
@@ -916,10 +916,10 @@ Row TextMetrics::tokenizeParagraph(pit_type const pit) const
                        // ⤶ U+2936 ARROW POINTING DOWNWARDS THEN CURVING LEFTWARDS
                        // ¶ U+00B6 PILCROW SIGN
                        char_type const screen_char = (c == 0x2028) ? 0x2936 : 0x00B6;
-                       row.add(i, screen_char, *fi, par.lookupChange(i), i >= body_pos);
+                       row.add(i, screen_char, *fi, par.lookupChange(i));
                } else
                        // row elements before body are unbreakable
-                       row.add(i, c, *fi, par.lookupChange(i), i >= body_pos);
+                       row.add(i, c, *fi, par.lookupChange(i));
 
                // add inline completion width
                // draw logically behind the previous character