You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by js...@apache.org on 2012/06/25 16:13:12 UTC
svn commit: r1353565 -
/incubator/ooo/trunk/main/svtools/source/table/tablecontrol_impl.cxx
Author: jsc
Date: Mon Jun 25 14:13:11 2012
New Revision: 1353565
URL: http://svn.apache.org/viewvc?rev=1353565&view=rev
Log:
#117461: set row count to 0 and add further check
Patch By: Tsutomu Uchino
Review By: jsc
Modified:
incubator/ooo/trunk/main/svtools/source/table/tablecontrol_impl.cxx
Modified: incubator/ooo/trunk/main/svtools/source/table/tablecontrol_impl.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svtools/source/table/tablecontrol_impl.cxx?rev=1353565&r1=1353564&r2=1353565&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svtools/source/table/tablecontrol_impl.cxx (original)
+++ incubator/ooo/trunk/main/svtools/source/table/tablecontrol_impl.cxx Mon Jun 25 14:13:11 2012
@@ -606,8 +606,16 @@ 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();