[Libreoffice-commits] core.git: svtools/source
Jürgen Schmidt
jsc at apache.org
Thu May 2 05:20:12 PDT 2013
svtools/source/table/tablecontrol_impl.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 951cdf4c406292d79766c4dbf1d19e8464134eec
Author: Jürgen Schmidt <jsc at apache.org>
Date: Mon Jun 25 13:13:11 2012 +0000
Resolves: #i117461# set row count to 0 and add further check
Patch By: Tsutomu Uchino
Review By: jsc
(cherry picked from commit d56225de586f878acd2f953bcf3208fe9a3c79a3)
Change-Id: I91ea7add253a5c40272ee112d207fcf510cd3935
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index 5b059ae..cf89b13 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -597,9 +597,17 @@ namespace svt { namespace table
if ( m_nRowCount > 0 )
goTo( m_nCurColumn, m_nRowCount - 1 );
else
+ {
m_nCurRow = ROW_INVALID;
+ m_nTopRow = 0;
+ }
+ }
+ else if ( m_nRowCount == 0 )
+ {
+ m_nTopRow = 0;
}
+
// relayout, since the scrollbar need might have changed
impl_ni_relayout();
More information about the Libreoffice-commits
mailing list