summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-04-04 14:33:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-04-04 14:33:20 +0200
commit0bb56e88f66e62ec305f863d83aa65a46e1b2ba3 (patch)
tree8e6d9d13046cf7e54736cf60a4c8d2264c4fbe01
parenta4b8a1c9f50bca3b557efca75100d9532a404ec6 (diff)
-Werror=unused-but-set-variable
-rw-r--r--sc/source/ui/view/prevwsh.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index 8b65824af442..86f3315bf5cb 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -301,8 +301,6 @@ void ScPreviewShell::UpdateNeededScrollBars()
long aHeightOffSet = pDevice ? pDevice->PixelToLogic( Size( nBarW, nBarH ), pPreview->GetMapMode() ).Height() : 0;
long aWidthOffSet = aHeightOffSet;
- Point aOfs = pPreview->GetOffset();
-
if( pHorScroll )
{
long nMaxPos = aPageSize.Width() - aWindowSize.Width() + aWidthOffSet;