incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1353565 - /incubator/ooo/trunk/main/svtools/source/table/tablecontrol_impl.cxx
Date Mon, 25 Jun 2012 14:13:12 GMT
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();



Mime
View raw message