diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-29 00:51:51 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-11-29 00:51:51 -0500 |
commit | 2d99262c2de5ccaaaee7b4cade3e05228a90eb64 (patch) | |
tree | 6f69b897b32ffeecd7cef39e49123658a30974bb /sc/source/ui/view/tabvwsh4.cxx | |
parent | 2f92037b08c8c08bee1cf91b2b1ccdff394445a4 (diff) |
fdo#32826: Preserve selected sheets after print preview ended.
Diffstat (limited to 'sc/source/ui/view/tabvwsh4.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index e6f7946519a6..5dc459d31215 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -94,6 +94,8 @@ #include "scabstdlg.hxx" #include "externalrefmgr.hxx" #include "docoptio.hxx" +#include "markdata.hxx" +#include "preview.hxx" void ActivateOlk( ScViewData* pViewData ); void DeActivateOlk( ScViewData* pViewData ); @@ -1725,6 +1727,9 @@ ScTabViewShell::ScTabViewShell( SfxViewFrame* pViewFrame, { ScPreviewShell* pPreviewShell = ((ScPreviewShell*)pOldSh); nForceDesignMode = pPreviewShell->GetSourceDesignMode(); + ScPreview* p = pPreviewShell->GetPreview(); + if (p) + GetViewData()->GetMarkData().SetSelectedTabs(p->GetSelectedTabs()); } Construct( nForceDesignMode ); |