sc/source/core/data/drwlayer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fb8644e8e102c9e34925b85d14a9100d33537f1e
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Oct 23 01:04:14 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Oct 23 09:26:16 2024 +0200

    tdf#163486: PVS: Expression is always true
    
    V560    A part of conditional expression is always true: pDoc.
    
    Change-Id: Ie3947a3360d65a97a6a70c584c3e3f32485b4b6b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175458
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 95463a9c6d2d..c60ac1814551 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -660,7 +660,7 @@ void ScDrawLayer::SetPageSize(sal_uInt16 nPageNo, const 
Size& rSize, bool bUpdat
     //  even if size is still the same
     //  (individual rows/columns can have been changed))
 
-    bool bNegativePage = pDoc && pDoc->IsNegativePage( 
static_cast<SCTAB>(nPageNo) );
+    bool bNegativePage = pDoc->IsNegativePage( static_cast<SCTAB>(nPageNo) );
 
     // Disable mass broadcasts from drawing objects' position changes.
     bool bWasLocked = isLocked();

Reply via email to