Kaydet (Commit) c25ac846 authored tarafından Deena Francis's avatar Deena Francis Kaydeden (comit) Markus Mohrhard

Resolves fdo#81084 fdo#81696 fdo#80874 fdo#81010 : sort causes crash

Change-Id: I8fb9ec26bc549c264bfbf30177d720b20677b319
Reviewed-on: https://gerrit.libreoffice.org/11102Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst df1f6deb
...@@ -932,9 +932,13 @@ void ScTable::SortReorderByRow( ...@@ -932,9 +932,13 @@ void ScTable::SortReorderByRow(
std::vector<PatternSpan>::iterator it = aSpans.begin(), itEnd = aSpans.end(); std::vector<PatternSpan>::iterator it = aSpans.begin(), itEnd = aSpans.end();
for (; it != itEnd; ++it) for (; it != itEnd; ++it)
pDocument->GetPool()->Put(*it->mpPattern);
for (it = aSpans.begin(); it != itEnd; ++it)
{ {
assert(it->mpPattern); // should never be NULL. assert(it->mpPattern); // should never be NULL.
aCol[nThisCol].SetPatternArea(it->mnRow1, it->mnRow2, *it->mpPattern, true); aCol[nThisCol].SetPatternArea(it->mnRow1, it->mnRow2, *it->mpPattern, true);
pDocument->GetPool()->Remove(*it->mpPattern);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment