https://bugs.documentfoundation.org/show_bug.cgi?id=131273
Julien Nabet <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from Julien Nabet <[email protected]> ---
Don't know if it's a naive patch but I don't reproduce the crash with it:
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index f99a8ce5fff5..56aa2e7f2506 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -1278,7 +1278,7 @@ static OUString lcl_GetFixed( const OUString& rLine,
sal_Int32 nStart, sal_Int32
bool bFits = (nSpace - nStart - 3 <= SAL_MAX_UINT16);
OSL_ENSURE( bFits, "lcl_GetFixed: line doesn't fit into data");
if (bFits)
- return rLine.copy(nStart+1, nSpace-nStart-2);
+ return rLine.copy(nStart+1, std::max(0, nSpace-nStart-2));
else
{
rbOverflowCell = true;
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs