summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-26 10:16:39 +0200
committerNoel Grandin <noel@peralex.com>2015-05-27 11:14:25 +0200
commitedc69a55c30ac6cc12de0bf18bddb7dc3f210be4 (patch)
treed661c9dadcf3bf4b9215667a15501656cee9e4fe /sw
parent5ad3886ec8d3d465c956d99fab42fffda656392c (diff)
simplify GetWindowClipRegionPixel
since it has only one call-site Change-Id: I80344faf4beab9aa9427ba8d448b0cf3fd30c7b6
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 61dcf46c3924..3c163d9d314f 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1196,7 +1196,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)