sc/source/ui/view/select.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 66f5b7979ac88e98f8a8c65cca428c1a71a8e383 Author: Balazs Varga <balazs.varga.ext...@allotropia.de> AuthorDate: Wed Apr 19 18:58:09 2023 +0200 Commit: Balazs Varga <balazs.varga.ext...@allotropia.de> CommitDate: Fri Apr 21 15:36:32 2023 +0200
tdf#154578 sc fix: fill square is reduced when pulling selection with CTRL Return from DestroyAnchor in case of fill mode, because we should not modify the refmode or blockmode in that case. Change-Id: Id5b4b2207ddd9e1b1d82afc773d2d1b3e97dbbc6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150645 Tested-by: Jenkins Tested-by: Gabor Kelemen <kelem...@ubuntu.com> Tested-by: Balazs Varga <balazs.varga.ext...@allotropia.de> Reviewed-by: Balazs Varga <balazs.varga.ext...@allotropia.de> (cherry picked from commit 0293724d05953be608287629ed6178a7c05383a6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150733 diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx index 489ea67cfeda..60298fbf7155 100644 --- a/sc/source/ui/view/select.cxx +++ b/sc/source/ui/view/select.cxx @@ -268,6 +268,9 @@ void ScViewFunctionSet::SetAnchor( SCCOL nPosX, SCROW nPosY ) void ScViewFunctionSet::DestroyAnchor() { + if (pViewData->IsAnyFillMode()) + return; + bool bRefMode = SC_MOD()->IsFormulaMode(); if (bRefMode) pViewData->GetView()->DoneRefMode( true );