summaryrefslogtreecommitdiff
path: root/sw/source/ui/inc/view.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-12-21 16:39:22 +0100
committerMichael Stahl <mstahl@redhat.com>2011-12-21 16:44:50 +0100
commit89d2733e16ae6233deea6bef3193bd45c89b854c (patch)
tree29437ec754649108f9c208351eff8e2335e30993 /sw/source/ui/inc/view.hxx
parentc84ac758aa081f2b642aa9b96fda8496d0d66188 (diff)
sw: fdo#39159 fdo#40482: temp selection print doc:
Ensure that the printing temp selection document is not destroyed prematurely by SwXTextView::NotifySelChanged, called via ViewOptionAdjustStop, by retaining the temp doc object shell not at the View but in SwRenderData. Not restoring the view options for selections does not actually work, because having a selection surprisingly does not imply printing a temp document: the preview also uses a selection. (view option regression from cd690d2e72be410058376c416a40ff5d918fb0f7)
Diffstat (limited to 'sw/source/ui/inc/view.hxx')
-rwxr-xr-xsw/source/ui/inc/view.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/ui/inc/view.hxx b/sw/source/ui/inc/view.hxx
index 4445edf8edd8..4f374af5314c 100755
--- a/sw/source/ui/inc/view.hxx
+++ b/sw/source/ui/inc/view.hxx
@@ -641,8 +641,7 @@ public:
void NotifyDBChanged();
- SfxObjectShellLock & GetTmpSelectionDoc();
- SfxObjectShellLock & GetOrCreateTmpSelectionDoc();
+ SfxObjectShellLock CreateTmpSelectionDoc();
void AddTransferable(SwTransferable& rTransferable);