forms/source/richtext/rtattributes.hxx |    2 ++
 sw/source/core/crsr/swcrsr.cxx         |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 310a52490749637cd6a6485407fbd1e5e143abe9
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sat Aug 27 10:54:17 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Aug 27 15:30:03 2022 +0200

    cid#1500688 silence Dereference after null check
    
    Change-Id: I53ffb3537b2ac5618a9776c946eebf866f725cb1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138929
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/forms/source/richtext/rtattributes.hxx 
b/forms/source/richtext/rtattributes.hxx
index b60ac6518562..fa00add450f4 100644
--- a/forms/source/richtext/rtattributes.hxx
+++ b/forms/source/richtext/rtattributes.hxx
@@ -112,6 +112,8 @@ namespace frm
         if ( pItemHandleItem == _rRHS.pItemHandleItem )
             return true;
 
+        assert(pItemHandleItem && _rRHS.pItemHandleItem && "otherwise have 
already returned");
+
         return *pItemHandleItem == *_rRHS.pItemHandleItem;
     }
 
commit fdb7e4b97f20e80dadb0c0b24baf5512040cd20d
Author:     Andrea Gelmini <[email protected]>
AuthorDate: Sat Aug 27 10:32:54 2022 +0200
Commit:     Julien Nabet <[email protected]>
CommitDate: Sat Aug 27 15:29:42 2022 +0200

    Fix typo
    
    Change-Id: I70e12e47fd2f72ce68f388861bdbf03cbad3c87f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138918
    Tested-by: Julien Nabet <[email protected]>
    Reviewed-by: Julien Nabet <[email protected]>

diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index 06c73af06b23..d040fcf5cd98 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -2090,7 +2090,7 @@ bool SwCursor::UpDown( bool bUp, sal_uInt16 nCnt,
         }
         else if (!pFrame->IsInFootnote()) // tdf#150457 Jump to the begin/end
                                           // of the first/last line only if the
-                                          // cursor is not inside a footenote
+                                          // cursor is not inside a footnote
         {
             sal_Int32 nOffset = 0;
 

Reply via email to