From: Abdelrazak Younes Date: Fri, 31 Aug 2007 14:02:12 +0000 (+0000) Subject: Hack: full repaint of text inset in Tabular. This will do until I can optimize it... X-Git-Tag: 1.6.10~8597 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6c111008dcf18f6825d01d4f5c46f1af9a853efd;p=lyx.git 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 --- 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();