Kaydet (Commit) d56225de authored tarafından Jürgen Schmidt's avatar Jürgen Schmidt

#117461: set row count to 0 and add further check

Patch By: Tsutomu Uchino
Review By: jsc
üst b596eabd
...@@ -606,9 +606,17 @@ namespace svt { namespace table ...@@ -606,9 +606,17 @@ namespace svt { namespace table
if ( m_nRowCount > 0 ) if ( m_nRowCount > 0 )
goTo( m_nCurColumn, m_nRowCount - 1 ); goTo( m_nCurColumn, m_nRowCount - 1 );
else else
{
m_nCurRow = ROW_INVALID; m_nCurRow = ROW_INVALID;
m_nTopRow = 0;
}
}
else if ( m_nRowCount == 0 )
{
m_nTopRow = 0;
} }
// relayout, since the scrollbar need might have changed // relayout, since the scrollbar need might have changed
impl_ni_relayout(); impl_ni_relayout();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment