summaryrefslogtreecommitdiff
path: root/svx/source/form/fmview.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-09-01 10:40:56 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-09-01 10:42:12 +0200
commit024f334c48bc3d6cfac91ab7499f6b2863223c24 (patch)
tree32fcf0402aeeb593ab0165bf180a5681a19c0917 /svx/source/form/fmview.cxx
parent15cea073e7ed4970e60967fe036fc492e2052203 (diff)
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/source/form/fmview.cxx')
-rw-r--r--svx/source/form/fmview.cxx3
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 );