]> git.lyx.org Git - lyx.git/commitdiff
Reset change bar information when breaking row
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 23 May 2019 08:59:49 +0000 (10:59 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 24 May 2019 08:21:43 +0000 (10:21 +0200)
This is a much less invasive version of da2696cc+da2696cc, which
reduces the risk to a minimum. There may be other Row members that
need resetting, we'll see that later.

Fixes bug #11396.

src/TextMetrics.cpp
status.23x

index cacf2e7ea65326ff73312eebe12b97e01d4df631..46c661d59b5405e458263032e800095b48f8fb1e 100644 (file)
@@ -836,6 +836,7 @@ bool TextMetrics::breakRow(Row & row, int const right_margin) const
        row.clear();
        row.left_margin = leftMargin(row.pit(), pos);
        row.right_margin = right_margin;
+       row.needsChangeBar(false);
        if (is_rtl)
                swap(row.left_margin, row.right_margin);
        // Remember that the row width takes into account the left_margin
index e8930712c523e6c61b8f091f322e0afdfcbe4c34..7bd3ebbcc7d65d4b01de34f7735688b34b8dbbb3 100644 (file)
@@ -213,6 +213,10 @@ What's new
 - Get rid of spurious empty entry in list of equations when creating new
   formula (bug 11423).
 
+- Handle some cases where the change bar in the margin did not get updated 
+  (bug 11396).
+
+
 
 * INTERNALS