diff options
author | Shubham Goyal <22shubh22@gmail.com> | 2019-08-16 11:59:01 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-08-19 16:12:22 +0200 |
commit | 3a95a2baee94e50e3f745990359fdeea65a422a8 (patch) | |
tree | 5db0feb06ebf64125c8c39b930b87d9c46e01cd5 /sd/source/ui/view/drviews7.cxx | |
parent | 41a01bbeb7b9cb448bf95b8a7d43a724267f8c64 (diff) |
Make QR code callable in Impress and Draw
Change-Id: If11686189b0665f3918821269dd73d122e632194
Reviewed-on: https://gerrit.libreoffice.org/77438
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd/source/ui/view/drviews7.cxx')
-rw-r--r-- | sd/source/ui/view/drviews7.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews7.cxx b/sd/source/ui/view/drviews7.cxx index 0405b91f1387..0671905ba363 100644 --- a/sd/source/ui/view/drviews7.cxx +++ b/sd/source/ui/view/drviews7.cxx @@ -325,6 +325,20 @@ void DrawViewShell::GetMenuState( SfxItemSet &rSet ) const SdrMarkList& rMarkList = mpDrawView->GetMarkedObjectList(); const size_t nMarkCount = rMarkList.GetMarkCount(); + if( nMarkCount == 1 ) + { + bool bDisable = true; + SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj(); + if( dynamic_cast<const SdrGrafObj*>( pObj) && ( static_cast<SdrGrafObj*>(pObj)->getQrCode())) + { + bDisable = false; + } + if(bDisable) + { + rSet.DisableItem(SID_EDIT_QRCODE); + } + } + //format paintbrush FuFormatPaintBrush::GetMenuState( *this, rSet ); |