]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Probably fix #10850 compiler warnings.
[lyx.git] / src / TextMetrics.cpp
index d81fe9e703417b55732360009a656a787d9a393c..89d999d55b471fdc85ec436d62938b677233ae87 100644 (file)
@@ -1892,9 +1892,9 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const
                // whether this row is the first or last and update the margins.
                if (row.selection()) {
                        if (row.sel_beg == 0)
-                               row.begin_margin_sel = sel_beg.pit() < pit;
+                               row.change(row.begin_margin_sel, sel_beg.pit() < pit);
                        if (row.sel_end == sel_end_par.lastpos())
-                               row.end_margin_sel = sel_end.pit() > pit;
+                               row.change(row.end_margin_sel, sel_end.pit() > pit);
                }
 
                // has row changed since last paint?