sc/source/core/tool/address.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit d6f6459350e9e661bc09191cfb31c5e779d522de Author: Eike Rathke <er...@redhat.com> Date: Thu Dec 10 16:50:06 2015 +0100 sticky end only if it already was a range on the same axis, tdf#92779 Change-Id: I66f624e696a4a6e681733ab863cd57c342cc0bc1 diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index b7f9a5b..a48baa5 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -2132,9 +2132,9 @@ bool ScRange::Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* pDoc ) if (dx && aStart.Col() == 0 && aEnd.Col() == MAXCOL) dx = 0; // Entire row not to be moved. bool b1 = aStart.Move( dx, dy, dz, pDoc ); - if (dx && aEnd.Col() == MAXCOL) + if (dx && bColRange && aEnd.Col() == MAXCOL) dx = 0; // End column sticky. - if (dy && aEnd.Row() == MAXROW) + if (dy && bRowRange && aEnd.Row() == MAXROW) dy = 0; // End row sticky. SCTAB nOldTab = aEnd.Tab(); bool b2 = aEnd.Move( dx, dy, dz, pDoc ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits