summaryrefslogtreecommitdiff
path: root/vcl/source/window/splitwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-01 13:14:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-08 07:37:40 +0100
commit7f48fa8152bd3320af7276d811b752c5a762dcce (patch)
treea95f2aec74a17050e825eb78833ee8f0274cb728 /vcl/source/window/splitwin.cxx
parentf10b7e820844d94b4dbec3dcaf24392275940914 (diff)
loplugin:collapseif in tools..xmloff
Change-Id: Iea1227a9f13a0a618d9bb6b0bbedaa5ce8d1a4f5 Reviewed-on: https://gerrit.libreoffice.org/62732 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/splitwin.cxx')
-rw-r--r--vcl/source/window/splitwin.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 18da9e6e432c..18085cade791 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -893,15 +893,12 @@ void SplitWindow::ImplDrawBack(vcl::RenderContext& rRenderContext, ImplSplitSet*
for ( auto& rItem : rItems )
{
pSet = rItem.mpSet.get();
- if (pSet)
+ if (pSet && pSet->mpWallpaper)
{
- if (pSet->mpWallpaper)
- {
- Point aPoint(rItem.mnLeft, rItem.mnTop);
- Size aSize(rItem.mnWidth, rItem.mnHeight);
- tools::Rectangle aRect(aPoint, aSize);
- rRenderContext.DrawWallpaper(aRect, *pSet->mpWallpaper);
- }
+ Point aPoint(rItem.mnLeft, rItem.mnTop);
+ Size aSize(rItem.mnWidth, rItem.mnHeight);
+ tools::Rectangle aRect(aPoint, aSize);
+ rRenderContext.DrawWallpaper(aRect, *pSet->mpWallpaper);
}
}