[Libreoffice-bugs] [Bug 131273] Crash when pasting quotes with fixed width
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 11 21:07:12 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=131273
Julien Nabet <serval2412 at yahoo.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |serval2412 at yahoo.fr
--- Comment #3 from Julien Nabet <serval2412 at yahoo.fr> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200311/b2a06eaf/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list