[Libreoffice-commits] core.git: svtools/source

Lionel Elie Mamane lionel at mamane.lu
Fri Jan 16 08:12:39 PST 2015


 svtools/source/brwbox/brwbox2.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e60b589952985edff12b1a28392ce6fa0ca8d9be
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Fri Jan 16 17:08:07 2015 +0100

    fdo#88475 BrowseBox/grid: reposition data cursor to current row after paint
    
    Change-Id: I0deee2c3cfdb111b178c4254d7b0544c4ce5c966

diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index b64b7c4..70486e9 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -1032,6 +1032,8 @@ void BrowseBox::ImplPaintData(OutputDevice& _rOut, const Rectangle& _rRect, bool
         }
     }
 
+    OSL_ENSURE(SeekRow(nCurRow), "BrowseBox::ImplPaintData could not seek back to current row after paint");
+
     if (aPos.Y() > aOverallAreaBRPos.Y() + 1)
         aPos.Y() = aOverallAreaBRPos.Y() + 1;
         // needed for some of the following drawing


More information about the Libreoffice-commits mailing list