From 41c248e066f454355dcceaa233ccf90f2adaee52 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Jun 2023 11:49:27 +0200 Subject: SvtCommandOptions only supports CMDOPTION_DISABLED CMDOPTION_NONE is just ignored, so remove this parameter Change-Id: If9de22a6b0522620a267cbc92b118f79e200d999 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152671 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/ui/envelp/labprt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source') diff --git a/sw/source/ui/envelp/labprt.cxx b/sw/source/ui/envelp/labprt.cxx index fb48899d61e4..6b1c78f160ae 100644 --- a/sw/source/ui/envelp/labprt.cxx +++ b/sw/source/ui/envelp/labprt.cxx @@ -46,7 +46,7 @@ SwLabPrtPage::SwLabPrtPage(weld::Container* pPage, weld::DialogController* pCont m_xPrtSetup->connect_clicked(LINK(this, SwLabPrtPage, PrtSetupHdl)); SvtCommandOptions aCmdOpts; - if (aCmdOpts.Lookup(SvtCommandOptions::CMDOPTION_DISABLED, "Print")) + if (aCmdOpts.LookupDisabled("Print")) { m_xPrinterFrame->hide(); } -- cgit