summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2023-04-19 18:58:09 +0200
committerBalazs Varga <balazs.varga.extern@allotropia.de>2023-04-21 14:24:04 +0200
commit0293724d05953be608287629ed6178a7c05383a6 (patch)
tree4684cef704056ab2fb859a232c1cb702041fe913
parentb1d341738d0902e3f71635b16d2d0f9ff63feb79 (diff)
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 <kelemeng@ubuntu.com> Tested-by: Balazs Varga <balazs.varga.extern@allotropia.de> Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
-rw-r--r--sc/source/ui/view/select.cxx3
1 files changed, 3 insertions, 0 deletions
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 );