diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-01 10:40:56 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-01 10:42:12 +0200 |
commit | 024f334c48bc3d6cfac91ab7499f6b2863223c24 (patch) | |
tree | 32fcf0402aeeb593ab0165bf180a5681a19c0917 /svx | |
parent | fdo#44081 don't remove 'edit' pop-up menu entry from form in design mode (diff) | |
download | core-024f334c48bc3d6cfac91ab7499f6b2863223c24.tar.gz core-024f334c48bc3d6cfac91ab7499f6b2863223c24.zip |
Revert "fdo#44081 don't remove 'edit' pop-up menu entry from form in design mode"
This reverts commit 15cea073e7ed4970e60967fe036fc492e2052203. I
overlooked the fact during review that this introduces an svx <-> sfx2
circular dependency.
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmview.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx index b4e8a960975a..343c624c6f17 100644 --- a/svx/source/form/fmview.cxx +++ b/svx/source/form/fmview.cxx @@ -130,6 +130,9 @@ void FmFormView::Init() } } + if( pObjShell && pObjShell->IsReadOnly() ) + bInitDesignMode = false; + // dieses wird in der Shell vorgenommen // bDesignMode = !bInitDesignMode; // erzwingt, dass SetDesignMode ausgefuehrt wird SetDesignMode( bInitDesignMode ); |