diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-01-16 17:08:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-19 16:26:45 +0000 |
commit | 5a17dd94ed0aca6cefbe1d44cd0a9aed74d1ff21 (patch) | |
tree | d61c7b581b8a6504219c7c5e0ccc26f9551d0d22 | |
parent | 5346929ef8127e177a1bf86f47be69da0ad7603f (diff) |
fdo#88475 BrowseBox/grid: reposition data cursor to current row after paint
Change-Id: I0deee2c3cfdb111b178c4254d7b0544c4ce5c966
Reviewed-on: https://gerrit.libreoffice.org/13955
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index ef9a6d419108..eacb2a8e2868 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -1031,6 +1031,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 |