https://bugs.freedesktop.org/show_bug.cgi?id=60420
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Julien Nabet <[email protected]> --- Sometimes "it" = maItems.end() so aCopied.reserve(std::distance(it, itEnd)); crashes With this patch, I don't reproduce the problem: diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index ad156ef..59c470b 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -1247,9 +1247,12 @@ void ScColumn::CopyStaticToDocument(SCROW nRow1, SCROW nRow2, ScColumn& rDestCol it = std::find_if(maItems.begin(), maItems.end(), FindInRows(nRow1, nRow2)); if (it != maItems.end()) itEnd = std::find_if(it, maItems.end(), FindAboveRow(nRow2)); + else + return; But perhaps it's not so simple If ok, I can push this patch on master. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
