summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/apphdl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-12 10:28:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-12 11:34:22 +0200
commitbad8bb24142348e7273fedfa5f8f4132a131254e (patch)
tree00a1c6800ce9d9de823ae6546f18cd88ae8c1ceb /sw/source/uibase/app/apphdl.cxx
parent3cee2b2d5823e83fbfa01b2987df2452f75fc777 (diff)
convert SelectionType to scoped enum
Change-Id: Iefdf6d47b1c0189c3b3e39ad5a025e95f18fe6b6 Reviewed-on: https://gerrit.libreoffice.org/36446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/app/apphdl.cxx')
-rw-r--r--sw/source/uibase/app/apphdl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 6babf28f7df5..61e98ca892ca 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -160,14 +160,14 @@ void SwModule::StateOther(SfxItemSet &rSet)
case FN_EDIT_FORMULA:
{
SwWrtShell* pSh = nullptr;
- int nSelection = 0;
+ SelectionType nSelection = SelectionType::NONE;
if( pActView )
pSh = &pActView->GetWrtShell();
if( pSh )
nSelection = pSh->GetSelectionType();
if( (pSh && pSh->HasSelection()) ||
- !(nSelection & (nsSelectionType::SEL_TXT | nsSelectionType::SEL_TBL)))
+ !(nSelection & (SelectionType::Text | SelectionType::Table)))
rSet.DisableItem(nWhich);
}
break;