summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-12-10 16:50:06 +0100
committerEike Rathke <erack@redhat.com>2015-12-11 16:48:30 +0100
commit74397f2fab816c11b73c36ef70bed97ae146969e (patch)
tree62cd049eaa9038ead8589e12cbf2de2a4d063440
parent3f13961c45ea9a6f90c0bc268a2274634d9b8033 (diff)
sticky end only if it already was a range on the same axis, tdf#92779
Change-Id: I66f624e696a4a6e681733ab863cd57c342cc0bc1 (cherry picked from commit d6f6459350e9e661bc09191cfb31c5e779d522de)
-rw-r--r--sc/source/core/tool/address.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index b7f9a5b526fb..a48baa524e69 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 );