From d56225de586f878acd2f953bcf3208fe9a3c79a3 Mon Sep 17 00:00:00 2001 From: Jürgen Schmidt Date: Mon, 25 Jun 2012 13:13:11 +0000 Subject: #117461: set row count to 0 and add further check Patch By: Tsutomu Uchino Review By: jsc --- svtools/source/table/tablecontrol_impl.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'svtools') diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index b9523edf5773..ab7da4ffdbd1 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -606,9 +606,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(); -- cgit