summaryrefslogtreecommitdiff
path: root/svx/source/sdr
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-25 10:34:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-26 12:15:53 +0200
commit93bf0b1ba11c7710f80a7773eaf0b5ca816d82a7 (patch)
tree13245a24edfa1aab9bc52c2f1f4ef44ae448a2c8 /svx/source/sdr
parentca865af23656f52008713709b3efee0e151d0303 (diff)
clang-tidy readability-simplify-boolean-expr in svx
Change-Id: I5190e453edd9fc2eda57f730834567e8e214ff16 Reviewed-on: https://gerrit.libreoffice.org/36931 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sdr')
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
index 65f21ca3e438..351cffaf3700 100644
--- a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
@@ -311,12 +311,7 @@ bool ViewObjectContactOfOuterPageBorder::isPrimitiveVisible(const DisplayInfo& r
const SdrView& rView = pSdrPageView->GetView();
- if(!rView.IsPageVisible() && rView.IsPageBorderVisible())
- {
- return false;
- }
-
- return true;
+ return rView.IsPageVisible() || !rView.IsPageBorderVisible();
}
ViewObjectContactOfInnerPageBorder::ViewObjectContactOfInnerPageBorder(ObjectContact& rObjectContact, ViewContact& rViewContact)