summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/imapwnd.cxx5
-rw-r--r--svx/source/dialog/imapwnd.hxx2
2 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/dialog/imapwnd.cxx b/svx/source/dialog/imapwnd.cxx
index 55ebd74a2d32..32862c2e5be2 100644
--- a/svx/source/dialog/imapwnd.cxx
+++ b/svx/source/dialog/imapwnd.cxx
@@ -482,7 +482,7 @@ IMapObject* IMapWindow::GetIMapObj( const SdrObject* pSdrObj )
return pIMapObj;
}
-bool IMapWindow::ContextMenu(const CommandEvent& rCEvt)
+bool IMapWindow::Command(const CommandEvent& rCEvt)
{
vcl::Region aRegion;
@@ -525,8 +525,7 @@ bool IMapWindow::ContextMenu(const CommandEvent& rCEvt)
return true;
}
- else
- return CustomWidgetController::ContextMenu(rCEvt);
+ return CustomWidgetController::Command(rCEvt);
}
IMapDropTargetHelper::IMapDropTargetHelper(IMapWindow& rImapWindow)
diff --git a/svx/source/dialog/imapwnd.hxx b/svx/source/dialog/imapwnd.hxx
index 464a6e6d3894..62242c9ffd1b 100644
--- a/svx/source/dialog/imapwnd.hxx
+++ b/svx/source/dialog/imapwnd.hxx
@@ -95,7 +95,7 @@ class IMapWindow final : public GraphCtrl
// GraphCtrl
virtual bool MouseButtonUp(const MouseEvent& rMEvt) override;
virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
- virtual bool ContextMenu(const CommandEvent& rCEvt) override;
+ virtual bool Command(const CommandEvent& rCEvt) override;
virtual OUString RequestHelp(tools::Rectangle& rHelpArea) override;
virtual void SdrObjCreated( const SdrObject& rObj ) override;
virtual void SdrObjChanged( const SdrObject& rObj ) override;