summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/preview.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-28 22:57:23 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-29 00:04:23 -0500
commit380b7827d3ce74182195b4e02aeafaa026dc81f1 (patch)
tree43ec96de5f7337d87f3662d95fd54e6a8e2fcfa3 /sc/source/ui/view/preview.cxx
parent7a16f31752990abd1d0d4afc682259b67f24ea60 (diff)
fdo#32826: Finally return the real selected sheets, and use it.
This should solve the problem reported in fdo#32826, which is, when printing from print preview window always prints all sheets regardless of currently selected sheets.
Diffstat (limited to 'sc/source/ui/view/preview.cxx')
-rw-r--r--sc/source/ui/view/preview.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 41232d0a5fed..a72b8a8d1081 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -1548,7 +1548,12 @@ void ScPreview::DrawInvert( long nDragPos, sal_uInt16 nFlags )
void ScPreview::SetSelectedTabs(const ScMarkData& rMark)
{
- rMark.GetSelectedTabs(maSelectedTabs);
+ maSelectedTabs = rMark.GetSelectedTabs();
+}
+
+const ScMarkData::MarkedTabsType& ScPreview::GetSelectedTabs() const
+{
+ return maSelectedTabs;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */