summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/textsh1.cxx
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2021-02-10 11:04:25 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2021-02-11 13:57:21 +0100
commit1e00ec5b5303bcf3eafd665106ba1e2c0ae8f791 (patch)
tree31cfb355d17a984054714ab9f4e558431315ef65 /sw/source/uibase/shells/textsh1.cxx
parente44639f50056b843913573b4635517019e00431c (diff)
Dropdown form field: don't increase code compexity for gen backend.
It's just an internal thing, we don't really need to optimize the code for it. This HideButton() function is not use anywhere else. Change-Id: I2e5fff73f6d50a0dedbd8d5f7eea748d09de6330 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110709 Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> (cherry picked from commit e8d1504ba7299d78dd825a512e8f04ef33900997) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110758 Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/shells/textsh1.cxx')
-rw-r--r--sw/source/uibase/shells/textsh1.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index a65d7ccebf42..c191d4c90f86 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1416,8 +1416,6 @@ void SwTextShell::Execute(SfxRequest &rReq)
pFieldBM->Invalidate();
rWrtSh.InvalidateWindows( rWrtSh.GetView().GetVisArea() );
rWrtSh.UpdateCursor(); // cursor position might be invalid
- // Hide the button here and make it visible later, to make transparent background work with SAL_USE_VCLPLUGIN=gen
- dynamic_cast<::sw::mark::DropDownFieldmark&>(*pFieldBM).HideButton();
}
}
else if ( pFieldBM && pFieldBM->GetFieldname() == ODF_FORMDATE )
@@ -1430,8 +1428,6 @@ void SwTextShell::Execute(SfxRequest &rReq)
rDateField.Invalidate();
rWrtSh.InvalidateWindows( rWrtSh.GetView().GetVisArea() );
rWrtSh.UpdateCursor(); // cursor position might be invalid
- // Hide the button here and make it visible later, to make transparent background work with SAL_USE_VCLPLUGIN=gen
- rDateField.HideButton();
}
}
else