summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-20 00:00:51 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-20 00:00:56 +0300
commitcf3e8cf92190baddf601283855070a36fc89125c (patch)
tree463e40bd342f66e07273d9b4f087f56264f0c636 /sw
parent8a5993aeea148ae5d84b4ab8f5116075d9456a5d (diff)
WaE: variables set but not used
Can bypass even more lines for OS X, Android and iOS. Change-Id: I6949ffa0cd21281ba169a813999da4b52e88691e
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index da4ab586498c..e1917983a093 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1193,6 +1193,9 @@ void ViewShell::VisPortChgd( const SwRect &rRect)
sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRect )
{
+#if !defined(MACOSX) && !defined(ANDROID) && !defined(IOS)
+ // #i98766# - disable smooth scrolling for Mac
+
const sal_uLong nColCnt = mpOut->GetColorCount();
long lMult = 1, lMax = LONG_MAX;
if ( nColCnt == 65536 )
@@ -1211,9 +1214,6 @@ sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRe
lMult = 12;
}
-#if !defined(MACOSX) && !defined(ANDROID) && !defined(IOS)
- // #i98766# - disable smooth scrolling for Mac
-
// #i75172# isolated static conditions
const bool bOnlyYScroll(!lXDiff && Abs(lYDiff) != 0 && Abs(lYDiff) < lMax);
const bool bAllowedWithChildWindows(GetWin()->GetWindowClipRegionPixel(WINDOW_GETCLIPREGION_NOCHILDREN|WINDOW_GETCLIPREGION_NULL).IsNull());