diff options
author | Eike Rathke <erack@redhat.com> | 2015-12-10 16:50:06 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-12-10 16:54:54 +0100 |
commit | d6f6459350e9e661bc09191cfb31c5e779d522de (patch) | |
tree | b07626348083f5cc6a7c8b573eecbea2fbb49359 | |
parent | 1aff042d88b2d6d3c3b7ed9db4b36bed640a0f06 (diff) |
sticky end only if it already was a range on the same axis, tdf#92779
Change-Id: I66f624e696a4a6e681733ab863cd57c342cc0bc1
-rw-r--r-- | sc/source/core/tool/address.cxx | 4 |
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 ); |