summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-26 10:16:39 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-02-05 22:08:40 -0500
commit7212033b4c0fb05996ce4a2bc39fad0d0acc4d48 (patch)
tree5a2408f4ca56bbf609350a24152220d382eabad1 /sw
parent6952666ef89177d1855a4ebaee88ea67231ff658 (diff)
simplify GetWindowClipRegionPixel
since it has only one call-site Change-Id: I80344faf4beab9aa9427ba8d448b0cf3fd30c7b6 (cherry picked from commit edc69a55c30ac6cc12de0bf18bddb7dc3f210be4)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/view/viewsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 1cebd5c33ed9..15235ae7ad50 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1240,7 +1240,7 @@ bool SwViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRect
// #i75172# isolated static conditions
const bool bOnlyYScroll(!lXDiff && std::abs(lYDiff) != 0 && std::abs(lYDiff) < lMax);
- const bool bAllowedWithChildWindows(GetWin()->GetWindowClipRegionPixel(WINDOW_GETCLIPREGION_NOCHILDREN|WINDOW_GETCLIPREGION_NULL).IsNull());
+ const bool bAllowedWithChildWindows(GetWin()->GetWindowClipRegionPixel().IsNull());
const bool bSmoothScrollAllowed(bOnlyYScroll && mbEnableSmooth && GetViewOptions()->IsSmoothScroll() && bAllowedWithChildWindows);
if(bSmoothScrollAllowed)