diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/table3.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index 71c53233ade4..2874cd650818 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -932,9 +932,13 @@ void ScTable::SortReorderByRow( std::vector<PatternSpan>::iterator it = aSpans.begin(), itEnd = aSpans.end(); for (; it != itEnd; ++it) + pDocument->GetPool()->Put(*it->mpPattern); + + for (it = aSpans.begin(); it != itEnd; ++it) { assert(it->mpPattern); // should never be NULL. aCol[nThisCol].SetPatternArea(it->mnRow1, it->mnRow2, *it->mpPattern, true); + pDocument->GetPool()->Remove(*it->mpPattern); } } |