[Libreoffice-commits] core.git: sc/source
Eike Rathke (via logerrit)
logerrit at kemper.freedesktop.org
Sat Oct 26 17:02:55 UTC 2019
sc/source/ui/docshell/docfunc.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9b5adc3d9842303e00eba8ffd239a4015bf8355b
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Fri Oct 25 20:14:32 2019 +0200
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Sat Oct 26 19:02:03 2019 +0200
Resolves: tdf#128359 Do nothing if Insert After can't be shifted to Before
Change-Id: I63bf24cda4d14857f9b5cf63a95d35b6438cead1
Reviewed-on: https://gerrit.libreoffice.org/81518
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 87e6db55f261..c1ca7b44f2c5 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -1695,7 +1695,7 @@ bool ScDocFunc::InsertCells( const ScRange& rRange, const ScMarkData* pTabMark,
ScRange aErrorRange( ScAddress::UNINITIALIZED );
if (!aTargetRange.Move(0, rRange.aEnd.Row() - rRange.aStart.Row() + 1, 0, aErrorRange))
{
- assert(!"can't move");
+ return false;
}
}
if ( eCmd == INS_INSCOLS_AFTER )
@@ -1703,7 +1703,7 @@ bool ScDocFunc::InsertCells( const ScRange& rRange, const ScMarkData* pTabMark,
ScRange aErrorRange( ScAddress::UNINITIALIZED );
if (!aTargetRange.Move(rRange.aEnd.Col() - rRange.aStart.Col() + 1, 0, 0, aErrorRange))
{
- assert(!"can't move");
+ return false;
}
}
More information about the Libreoffice-commits
mailing list