sc/source/core/data/table3.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 719dd447ec1ab5ed0085b4f41cfd8e76fa835106 Author: Deena Francis <deena.fran...@gmail.com> Date: Mon Aug 25 01:38:47 2014 +0530 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.mohrh...@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com> (cherry picked from commit c25ac84688b596b9990d382d550f0514161b78c2) Reviewed-on: https://gerrit.libreoffice.org/11137 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Eike Rathke <er...@redhat.com> diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx index 71010f1..613cb1f 100644 --- a/sc/source/core/data/table3.cxx +++ b/sc/source/core/data/table3.cxx @@ -936,9 +936,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); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits