sc/source/ui/docshell/docfunc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9b5adc3d9842303e00eba8ffd239a4015bf8355b Author: Eike Rathke <er...@redhat.com> AuthorDate: Fri Oct 25 20:14:32 2019 +0200 Commit: Eike Rathke <er...@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 <er...@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; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits