From 6c111008dcf18f6825d01d4f5c46f1af9a853efd Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 31 Aug 2007 14:02:12 +0000 Subject: [PATCH] Hack: full repaint of text inset in Tabular. This will do until I can optimize it. We've never done anything but full repaint anyway in tabular. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19948 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 735de8d444..ff4ff817f1 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3013,6 +3013,10 @@ void InsetTabular::draw(PainterInfo & pi, int x, int y) const //lyxerr << "InsetTabular::draw: " << x << " " << y << endl; BufferView * bv = pi.base.bv; + // FIXME: As the full backrgound is painted in drawSelection(), + // we have no choice but to do a full repaint for the Text cells. + pi.full_repaint = true; + resetPos(bv->cursor()); x += scx_; @@ -3063,6 +3067,9 @@ void InsetTabular::drawSelection(PainterInfo & pi, int x, int y) const x += scx_ + ADD_TO_TABULAR_WIDTH; + // FIXME: it is wrong to completely paint the background + // if we want to do single row painting. + // Paint background of current tabular int const w = tabular.getWidthOfTabular(); int const h = tabular.getHeightOfTabular(); -- 2.39.5