From 3f507037e64994f18d661ce4f3cc06a7cd1c818c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 14 Apr 2016 15:54:06 +0200 Subject: -Werror=logical-op (GCC 6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "logical ‘or’ of equal expressions" Change-Id: I156cb8f09dadb7b625585cfd28d584ba0ae7633e --- sw/source/core/draw/dflyobj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx index b672d7e40aba..8451721f02f7 100644 --- a/sw/source/core/draw/dflyobj.cxx +++ b/sw/source/core/draw/dflyobj.cxx @@ -731,7 +731,7 @@ void SwVirtFlyDrawObj::NbcCrop(const Point& rRef, const Fraction& xFact, const F { // Get Wrt Shell SwWrtShell *pSh = dynamic_cast( GetFlyFrame()->getRootFrame()->GetCurrShell() ); - if (!pSh || dynamic_cast( pSh) == nullptr) + if (!pSh) return; // Compute old and new rect. This will give us the deformation to apply to -- cgit