summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2019-10-25 20:14:32 +0200
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2019-10-27 09:49:39 +0100
commit07d470b1ec314cb74effecafab3b62935270c99b (patch)
treea300d371094cd285b84b3aa2320e68ca0bef8aea /sc
parentcb15e56dfd4e3443467c0b54522023bbe03505e9 (diff)
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@redhat.com> (cherry picked from commit 9b5adc3d9842303e00eba8ffd239a4015bf8355b) Reviewed-on: https://gerrit.libreoffice.org/81549 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index a5a61830f0fc..c184cadf9e95 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -1692,7 +1692,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 )
@@ -1700,7 +1700,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;
}
}