Kaydet (Commit) e1ebb5cb authored tarafından Noel Grandin's avatar Noel Grandin

tdf67629 FILEOPEN Particular .xlsx hangs Spreadsheet

Seems like this is a somewhat pathological document, has lots of
duplicated ranges. Checking for duplicates makes it load in <10s on my
machine

Change-Id: I25da24e0f8b1d4ad99d00474be168c75586ea579
Reviewed-on: https://gerrit.libreoffice.org/71251
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 0a188fee
......@@ -663,6 +663,9 @@ void SheetDataBuffer::setCellFormat( const CellModel& rModel )
* It is sufficient to check if the row range size is one
*/
if (!rRangeList.empty() &&
*pLastRange == rModel.maCellAddr)
; // do nothing - this probably bad data
else if (!rRangeList.empty() &&
pLastRange->aStart.Tab() == rModel.maCellAddr.Tab() &&
pLastRange->aStart.Row() == pLastRange->aEnd.Row() &&
pLastRange->aStart.Row() == rModel.maCellAddr.Row() &&
......
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