[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Nov 28 21:52:20 PST 2011


 sc/source/ui/view/tabvwsh4.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 2d99262c2de5ccaaaee7b4cade3e05228a90eb64
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date:   Tue Nov 29 00:51:51 2011 -0500

    fdo#32826: Preserve selected sheets after print preview ended.

diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index e6f7946..5dc459d 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 );


More information about the Libreoffice-commits mailing list