summaryrefslogtreecommitdiff
path: root/sc/source/ui/inc
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-06-26 18:19:21 +0100
committerNoel Power <noel.power@novell.com>2012-06-26 18:19:21 +0100
commit4a5e8fc26e2bbd37779505c40f470b3b3be9a5db (patch)
tree39ece8144ebe2fb9cc1d99ba3f6b0f782a1a87e0 /sc/source/ui/inc
parentbe92126c633f13589628068d523939c60f905894 (diff)
fix for fdo#51040 preview crash
Change-Id: I13d3cfa99294bdce8c9f5133f49e91114feb4baa
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r--sc/source/ui/inc/prevwsh.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/inc/prevwsh.hxx b/sc/source/ui/inc/prevwsh.hxx
index 0f89fc7745d9..020c2110022f 100644
--- a/sc/source/ui/inc/prevwsh.hxx
+++ b/sc/source/ui/inc/prevwsh.hxx
@@ -50,7 +50,6 @@ class CommandEvent;
class ScPreviewShell: public SfxViewShell
{
-friend class ScPreview; // allow access to AdjustPosSizePixel
ScDocShell* pDocShell;
SystemWindow* mpFrameWindow;
@@ -66,7 +65,6 @@ friend class ScPreview; // allow access to AdjustPosSizePixel
SfxBroadcaster* pAccessibilityBroadcaster;
bool GetPageSize( Size& aPageSize );
- void UpdateNeededScrollBars();
private:
void Construct( Window* pParent );
DECL_LINK(ScrollHandler, ScrollBar* );
@@ -106,6 +104,7 @@ public:
void InitStartTable(SCTAB nTab);
void UpdateScrollBars();
+ void UpdateNeededScrollBars(bool bFromZoom = false);
sal_Bool ScrollCommand( const CommandEvent& rCEvt );
void Execute( SfxRequest& rReq );