sd/source/ui/func/fupoor.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 107aff7382654109b614a24d933dc6301dac06d1
Author:     Xisco Fauli <[email protected]>
AuthorDate: Mon Mar 30 11:35:36 2026 +0200
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Mar 30 14:40:53 2026 +0200

    sd: silence warning C6011: Dereferencing NULL pointer 'pObj'
    
    Change-Id: Iff351140dd3ccbe3374ffdd4ecf657e4428c9e72
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202972
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sd/source/ui/func/fupoor.cxx b/sd/source/ui/func/fupoor.cxx
index 202fb5ffc636..89ff775cc14e 100644
--- a/sd/source/ui/func/fupoor.cxx
+++ b/sd/source/ui/func/fupoor.cxx
@@ -795,6 +795,10 @@ bool FuPoor::KeyInput(const KeyEvent& rKEvt)
                         pObj = pSubSelection;
                 }
 
+                // FIXME: MSVC analyzer complains about
+                // warning C6011: Dereferencing NULL pointer 'pObj'
+                // which is a false positive since DynCastSdrTextObj already 
checks pObj
+                assert(pObj);
                 // #i118485# allow TextInput for OLEs, too
                 if( DynCastSdrTextObj( pObj ) !=  nullptr && 
pObj->HasTextEdit())
                 {

Reply via email to