sc/source/ui/view/tabview2.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 3b70b846503e8c3942da95a23e5fe854b02e0553 Author: Dennis Francis <dennisfrancis...@gmail.com> Date: Sun Dec 20 09:05:53 2015 +0530 Fix tdf#96524 : Do not change view when... ...entire column or row is selected using row/col header and keyboard shortcuts are used to amend the ref selection. Change-Id: I97f05ae2192aff65933fec53e6e79024420d8d5b Reviewed-on: https://gerrit.libreoffice.org/20837 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Eike Rathke <er...@redhat.com> diff --git a/sc/source/ui/view/tabview2.cxx b/sc/source/ui/view/tabview2.cxx index 2d4dbe5..7ccf861 100644 --- a/sc/source/ui/view/tabview2.cxx +++ b/sc/source/ui/view/tabview2.cxx @@ -912,7 +912,9 @@ void ScTabView::ExpandBlock(SCsCOL nMovX, SCsROW nMovY, ScFollowMode eMode) pDoc->SkipOverlapped(nNewX, nNewY, nRefTab); UpdateRef(nNewX, nNewY, nRefTab); - AlignToCursor(nNewX, nNewY, eMode); + if ((aViewData.GetRefStartX() == MAXCOL || nNewX != MAXCOL) && + (aViewData.GetRefStartY() == MAXROW || nNewY != MAXROW)) + AlignToCursor(nNewX, nNewY, eMode); } else { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits