diff options
author | Deena Francis <deena.francis@gmail.com> | 2014-08-25 01:38:47 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-25 06:58:00 -0500 |
commit | c25ac84688b596b9990d382d550f0514161b78c2 (patch) | |
tree | aa1da8e71c00989dc2e0308f20137613672881f9 | |
parent | df1f6debb793eea6e57914391a7174e0eafe3667 (diff) |
Resolves fdo#81084 fdo#81696 fdo#80874 fdo#81010 : sort causes crash
Change-Id: I8fb9ec26bc549c264bfbf30177d720b20677b319
Reviewed-on: https://gerrit.libreoffice.org/11102
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-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); } } |