Kaydet (Commit) 9a4d0bbd authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Miklos Vajna

Prevent showing the dialog (and crashing) when tiled rendering.

Change-Id: I41d3294bb73b8c183a55e7cb6766ff38bc96418f
üst 6d592103
...@@ -3246,9 +3246,12 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) ...@@ -3246,9 +3246,12 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
{ {
case nsSelectionType::SEL_GRF: case nsSelectionType::SEL_GRF:
RstMBDownFlags(); RstMBDownFlags();
GetView().GetViewFrame()->GetBindings().Execute( if (!rSh.isTiledRendering())
FN_FORMAT_GRAFIC_DLG, 0, 0, {
SfxCallMode::RECORD|SfxCallMode::SLOT); GetView().GetViewFrame()->GetBindings().Execute(
FN_FORMAT_GRAFIC_DLG, 0, 0,
SfxCallMode::RECORD|SfxCallMode::SLOT);
}
return; return;
// double click on OLE object --> OLE-InPlace // double click on OLE object --> OLE-InPlace
...@@ -3262,8 +3265,12 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) ...@@ -3262,8 +3265,12 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
case nsSelectionType::SEL_FRM: case nsSelectionType::SEL_FRM:
RstMBDownFlags(); RstMBDownFlags();
GetView().GetViewFrame()->GetBindings().Execute( if (!rSh.isTiledRendering())
FN_FORMAT_FRAME_DLG, 0, 0, SfxCallMode::RECORD|SfxCallMode::SLOT); {
GetView().GetViewFrame()->GetBindings().Execute(
FN_FORMAT_FRAME_DLG, 0, 0,
SfxCallMode::RECORD|SfxCallMode::SLOT);
}
return; return;
case nsSelectionType::SEL_DRW: case nsSelectionType::SEL_DRW:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment