summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-01 21:06:41 +0900
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-07 09:18:08 +0200
commit9a4d0bbdb55232efbda6492378714e2910f948f1 (patch)
treea10c9787d63503f35f63b91b74f9b8373abd89d6 /sw
parent6d59210340cba4db7387e05eff302b59bd93dac3 (diff)
Prevent showing the dialog (and crashing) when tiled rendering.
Change-Id: I41d3294bb73b8c183a55e7cb6766ff38bc96418f
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx17
1 files changed, 12 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 9b0eecb2abc2..a05430a03036 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -3246,9 +3246,12 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
{
case nsSelectionType::SEL_GRF:
RstMBDownFlags();
- GetView().GetViewFrame()->GetBindings().Execute(
- FN_FORMAT_GRAFIC_DLG, 0, 0,
- SfxCallMode::RECORD|SfxCallMode::SLOT);
+ if (!rSh.isTiledRendering())
+ {
+ GetView().GetViewFrame()->GetBindings().Execute(
+ FN_FORMAT_GRAFIC_DLG, 0, 0,
+ SfxCallMode::RECORD|SfxCallMode::SLOT);
+ }
return;
// double click on OLE object --> OLE-InPlace
@@ -3262,8 +3265,12 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt)
case nsSelectionType::SEL_FRM:
RstMBDownFlags();
- GetView().GetViewFrame()->GetBindings().Execute(
- FN_FORMAT_FRAME_DLG, 0, 0, SfxCallMode::RECORD|SfxCallMode::SLOT);
+ if (!rSh.isTiledRendering())
+ {
+ GetView().GetViewFrame()->GetBindings().Execute(
+ FN_FORMAT_FRAME_DLG, 0, 0,
+ SfxCallMode::RECORD|SfxCallMode::SLOT);
+ }
return;
case nsSelectionType::SEL_DRW: