diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-27 19:57:17 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-27 20:59:34 +0200 |
commit | ba57c3e041bb05ef49a3ea7940a4183f09775a18 (patch) | |
tree | 04a00fcec685ccf0a85b4ba90b8f116794e85839 /reportdesign/source/ui/report/ReportSection.cxx | |
parent | 3ffb0373695a7b3a7f8cab8f2b8bf259c4300a7e (diff) |
tdf#120703 PVS: V581 ifs with identical conditions
V581 The conditional expressions of the 'if' statements situated
alongside each other are identical.
Change-Id: I79c655a072faff0bdb2af031ed1328e684b83aac
Reviewed-on: https://gerrit.libreoffice.org/71430
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'reportdesign/source/ui/report/ReportSection.cxx')
-rw-r--r-- | reportdesign/source/ui/report/ReportSection.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx index 43814411a25f..909376cd21be 100644 --- a/reportdesign/source/ui/report/ReportSection.cxx +++ b/reportdesign/source/ui/report/ReportSection.cxx @@ -154,11 +154,8 @@ void OReportSection::Paint( vcl::RenderContext& rRenderContext, const tools::Rec // draw background self using wallpaper OutputDevice& rTargetOutDev = pTargetPaintWindow->GetTargetOutputDevice(); rTargetOutDev.DrawWallpaper(rRect, Wallpaper(pPgView->GetApplicationDocumentColor())); - } - // do paint (unbuffered) and mark repaint end - if(pPgView) - { + // do paint (unbuffered) and mark repaint end pPgView->DrawLayer(RPT_LAYER_FRONT, &rRenderContext); pPgView->GetView().EndDrawLayers(*pTargetPaintWindow, true); } |