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>
diff --git a/sc/source/ui/view/select.cxx b/sc/source/ui/view/select.cxx
index 772d86d..e5fcb5e 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 );