]> git.lyx.org Git - lyx.git/commitdiff
Hack: full repaint of text inset in Tabular. This will do until I can optimize it...
authorAbdelrazak Younes <younes@lyx.org>
Fri, 31 Aug 2007 14:02:12 +0000 (14:02 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 31 Aug 2007 14:02:12 +0000 (14:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19948 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 735de8d4446c97d3cd458c54d2693d61aabdf714..ff4ff817f1af15ae067bb72d49c2d3cea951e1d7 100644 (file)
@@ -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();