diff options
author | Eike Rathke <erack@redhat.com> | 2019-10-25 20:14:32 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-10-26 19:02:03 +0200 |
commit | 9b5adc3d9842303e00eba8ffd239a4015bf8355b (patch) | |
tree | 19b279c0dfd9c289c174fc135355142ba1c16fce /sc/source | |
parent | 6e25d91992f37ec5c215b16f5c2e3f7c60405e0c (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>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |