diff options
author | Mihaela Kedikova <misheto@openoffice.org> | 2010-03-25 11:49:27 +0100 |
---|---|---|
committer | Mihaela Kedikova <misheto@openoffice.org> | 2010-03-25 11:49:27 +0100 |
commit | ee6e797e37f1657e47c530205d0162c6a886850d (patch) | |
tree | e17654320a8ca2922fa7466db301eaa64ad4421a /svtools/source/table | |
parent | 9fb6554349b5ef27eff08281fcb999322551cf18 (diff) |
gridcontrol_03:scrollbar update after resizing bug fixed
Diffstat (limited to 'svtools/source/table')
-rw-r--r-- | svtools/source/table/tablecontrol.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 6 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.hxx | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/svtools/source/table/tablecontrol.cxx b/svtools/source/table/tablecontrol.cxx index 4785248fbea6..3d8fedd2977e 100644 --- a/svtools/source/table/tablecontrol.cxx +++ b/svtools/source/table/tablecontrol.cxx @@ -177,7 +177,7 @@ namespace svt { namespace table { Rectangle _rRect; if(_bRemoved) - m_pImpl->invalidateRows(_nRowStart, _rRect); + m_pImpl->invalidateRows(); else { if(m_bSelectionChanged) diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index bd5f188e3889..d145e61b9274 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -899,7 +899,7 @@ namespace svt { namespace table { if(m_bResizingGrid) impl_ni_updateColumnWidths(); - impl_ni_updateScrollbars(); + invalidateRows(); m_bResizingGrid = true; } } @@ -1614,10 +1614,8 @@ namespace svt { namespace table m_nCurRow = _nRowPos-1; } //------------------------------------------------------------------------------ - void TableControl_Impl::invalidateRows(RowPos _nRowStart, Rectangle& _rCellRect) + void TableControl_Impl::invalidateRows() { - (void)_nRowStart; - (void)_rCellRect; impl_ni_updateScrollbars(); TableSize nVisibleRows = impl_getVisibleRows(true); if(m_nTopRow+nVisibleRows>m_nRowCount && m_nRowCount>=nVisibleRows) diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx index 8494e73d5ce9..bf22d8b3cd4e 100644 --- a/svtools/source/table/tablecontrol_impl.hxx +++ b/svtools/source/table/tablecontrol_impl.hxx @@ -200,7 +200,7 @@ namespace svt { namespace table std::vector<RowPos>& getSelectedRows(); /** updates the vector, which contains the selected rows after removing the row nRowPos*/ void removeSelectedRow(RowPos _nRowPos); - void invalidateRows(RowPos _nRowStart, Rectangle& _rCellRect ); + void invalidateRows(); // IAbstractTableControl virtual void hideCursor(); |