sc/source/ui/view/select.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 0293724d05953be608287629ed6178a7c05383a6 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 14:24:04 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> diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx index 772d86df1c66..e5fcb5e254a5 100644 --- a/sc/source/ui/view/select.cxx +++ b/sc/source/ui/view/select.cxx @@ -274,6 +274,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 );