diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-09-21 15:18:23 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-21 18:05:02 +0200 |
commit | b844f06b36cf9a6c1411861a08701c8f9be2af0d (patch) | |
tree | 54b76161f052d77d52e890c712aea86e7852db54 /sw/inc/swcrsr.hxx | |
parent | 5b89b1dd909f76154266cd51558e97152cff5f64 (diff) |
fdo#48692: fix problems with large number of table cells:
SwSelBoxes containers are filled from SwTableSortBoxes in various
places, so adapt that to use size_t integers as well.
Change-Id: Ia55f020bb9ada94bb22802d9adabb055a22edd2f
Diffstat (limited to 'sw/inc/swcrsr.hxx')
-rw-r--r-- | sw/inc/swcrsr.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx index 2a1c5638cdab..30901f3b2b4e 100644 --- a/sw/inc/swcrsr.hxx +++ b/sw/inc/swcrsr.hxx @@ -270,7 +270,7 @@ class SwTableCursor : public virtual SwCursor protected: sal_uLong nTblPtNd, nTblMkNd; xub_StrLen nTblPtCnt, nTblMkCnt; - SwSelBoxes aSelBoxes; + SwSelBoxes m_SelectedBoxes; sal_Bool bChg : 1; sal_Bool bParked : 1; // Table-cursor was parked. @@ -286,9 +286,9 @@ public: virtual sal_Bool GotoTable( const String& rName ); void InsertBox( const SwTableBox& rTblBox ); - void DeleteBox( sal_uInt16 nPos ) { aSelBoxes.erase( aSelBoxes.begin() + nPos ); bChg = sal_True; } - sal_uInt16 GetBoxesCount() const { return aSelBoxes.size(); } - const SwSelBoxes& GetBoxes() const { return aSelBoxes; } + void DeleteBox(size_t nPos); + size_t GetSelectedBoxesCount() const { return m_SelectedBoxes.size(); } + const SwSelBoxes& GetSelectedBoxes() const { return m_SelectedBoxes; } // Creates cursor for all boxes. SwCursor* MakeBoxSels( SwCursor* pAktCrsr ); |