summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-02-15 12:56:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-18 07:15:57 +0100
commitaa51774e6a309f277e71ca3a3b9d5d5b4b3dbf1a (patch)
treec69ad9f8591f69749699ddd7c108238820532eb3 /sc/source
parent9712dd74bfb0c9b99cab37bd147fe267b48c6d7d (diff)
loplugin:simplifybool, check for !(!a op !b)
Change-Id: Ic3ee9c05705817580633506498f848aac3ab7ba6 Reviewed-on: https://gerrit.libreoffice.org/67866 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/xml/xmlsubti.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlsubti.cxx b/sc/source/filter/xml/xmlsubti.cxx
index d28a930b2030..1dea576a3e75 100644
--- a/sc/source/filter/xml/xmlsubti.cxx
+++ b/sc/source/filter/xml/xmlsubti.cxx
@@ -243,12 +243,12 @@ uno::Reference< drawing::XShapes > const & ScMyTables::GetCurrentXShapes()
bool ScMyTables::HasDrawPage()
{
- return !((maCurrentCellPos.Tab() != nCurrentDrawPage) || !xDrawPage.is());
+ return (maCurrentCellPos.Tab() == nCurrentDrawPage) && xDrawPage.is();
}
bool ScMyTables::HasXShapes()
{
- return !((maCurrentCellPos.Tab() != nCurrentXShapes) || !xShapes.is());
+ return (maCurrentCellPos.Tab() == nCurrentXShapes) && xShapes.is();
}
void ScMyTables::AddOLE(const uno::Reference <drawing::XShape>& rShape,