sc/source/ui/docshell/docfunc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 07d470b1ec314cb74effecafab3b62935270c99b Author: Eike Rathke <er...@redhat.com> AuthorDate: Fri Oct 25 20:14:32 2019 +0200 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Sun Oct 27 09:49:39 2019 +0100 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> (cherry picked from commit 9b5adc3d9842303e00eba8ffd239a4015bf8355b) Reviewed-on: https://gerrit.libreoffice.org/81549 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> 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; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits