sc/source/ui/view/cellsh3.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 48c6046fa972536fd6fcda88ac5aa825969a6fdb Author: Gabor Kelemen <kelem...@ubuntu.com> AuthorDate: Sat May 7 17:10:18 2022 +0200 Commit: Bartosz Kosiorek <gan...@poczta.onet.pl> CommitDate: Wed May 11 10:35:12 2022 +0200 Drop IS_EDITMODE macro that is used only once Change-Id: I2fb5b8eb34aa18c35d3a53851ce8d92090d85590 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133982 Tested-by: Jenkins Reviewed-by: Bartosz Kosiorek <gan...@poczta.onet.pl> diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx index 143f61be24af..2734bc9b3027 100644 --- a/sc/source/ui/view/cellsh3.cxx +++ b/sc/source/ui/view/cellsh3.cxx @@ -51,8 +51,6 @@ #include <memory> -#define IS_EDITMODE() GetViewData().HasEditView( GetViewData().GetActivePart() ) - using sc::TwipsToEvenHMM; namespace @@ -163,7 +161,7 @@ void ScCellShell::Execute( SfxRequest& rReq ) if (nSlot != SID_CURRENTCELL) // this comes with MouseButtonUp pTabViewShell->HideListBox(); // Autofilter-DropDown-Listbox - if ( IS_EDITMODE() ) + if ( GetViewData().HasEditView( GetViewData().GetActivePart() ) ) { switch ( nSlot ) {