mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
TextMetrics::drawParagraph(): Fix drawing bug reported by Richard by backing up the full repaint flag.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3d8828fa14
commit
cb83883583
@ -1895,10 +1895,15 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type pit, int x, int y) co
|
|||||||
// Don't paint the row if a full repaint has not been requested
|
// Don't paint the row if a full repaint has not been requested
|
||||||
// and if it has not changed.
|
// and if it has not changed.
|
||||||
if (!pi.full_repaint && !row_has_changed) {
|
if (!pi.full_repaint && !row_has_changed) {
|
||||||
|
// Backup full_repaint status because some Inset (InsetTabular)
|
||||||
|
// requires a full repaint
|
||||||
|
bool tmp = pi.full_repaint;
|
||||||
// Paint only the insets if the text itself is
|
// Paint only the insets if the text itself is
|
||||||
// unchanged.
|
// unchanged.
|
||||||
rp.paintOnlyInsets();
|
rp.paintOnlyInsets();
|
||||||
y += row.descent();
|
y += row.descent();
|
||||||
|
// Restore full_repaint status.
|
||||||
|
pi.full_repaint = tmp;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user