https://bugs.documentfoundation.org/show_bug.cgi?id=159373

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Julien Nabet <[email protected]> ---
Eike: following my previous comments, I thought about this patch:
diff --git a/sc/source/ui/docshell/docsh3.cxx
b/sc/source/ui/docshell/docsh3.cxx
index 922c2c358a26..f8ee04ef8d50 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -117,6 +117,8 @@ void ScDocShell::PostPaint( const ScRangeList& rRanges,
PaintPartFlags nPart, sa
         SCCOL nCol1 = rRange.aStart.Col(), nCol2 = rRange.aEnd.Col();
         SCROW nRow1 = rRange.aStart.Row(), nRow2 = rRange.aEnd.Row();
         SCTAB nTab1 = rRange.aStart.Tab(), nTab2 = std::min<SCTAB>(nMaxTab,
rRange.aEnd.Tab());
+        if (nTab1 < 0 && nTab2 < 0)
+            continue;

         if (!m_pDocument->ValidCol(nCol1))
         {

I tested it locally and it prevents LO from crashing.
Any thoughts here?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to