summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-04-03 16:33:41 +0100
committerNoel Power <noel.power@novell.com>2012-04-03 17:23:26 +0100
commitd7b06ba7ec2c988e80c8ef14e2d9bfc2c29e2d24 (patch)
treeb96310cde6f7182cfd2104b164c9549a2aa97eac /sc
parenttry including the ostream<<OUString operator directly with OUString (diff)
downloadcore-d7b06ba7ec2c988e80c8ef14e2d9bfc2c29e2d24.tar.gz
core-d7b06ba7ec2c988e80c8ef14e2d9bfc2c29e2d24.zip
Revert "Hori scroll fix in Writer and Calc Print Preview" & add new patch
This reverts commit eeeb4d9a1c772b12aab515c8d5089fb6b5e003c7. Fix Scrollbar in Writer Print preview
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/prevwsh.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index 6d876b3ae18d..dfc62686b439 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -308,21 +308,18 @@ void ScPreviewShell::UpdateScrollBars()
// page smaller than window -> center (but put scrollbar to 0)
aOfs.X() = 0;
pPreview->SetXOffset( nMaxPos / 2 );
- pHorScroll->Show( sal_False );
}
else if (aOfs.X() < 0)
{
// page larger than window -> never use negative offset
aOfs.X() = 0;
pPreview->SetXOffset( 0 );
- pHorScroll->Show( sal_True );
}
else if (aOfs.X() > nMaxPos)
{
// limit offset to align with right edge of window
aOfs.X() = nMaxPos;
pPreview->SetXOffset(nMaxPos);
- pHorScroll->Show( sal_True );
}
pHorScroll->SetThumbPos( aOfs.X() );
}