[PATCH] It is safer to uncomment these checks in the postithelper

Joren De Cuyper (via Code Review) gerrit at gerrit.libreoffice.org
Wed Mar 6 05:50:58 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2567

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/67/2567/1

It is safer to uncomment these checks in the postithelper

Change-Id: I84d96224dbe51ff25fcb6d96e0be9a8dff89b0a1
---
M sw/source/core/fields/postithelper.cxx
1 file changed, 6 insertions(+), 6 deletions(-)



diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx
index 5706319..b68fe12 100644
--- a/sw/source/core/fields/postithelper.cxx
+++ b/sw/source/core/fields/postithelper.cxx
@@ -165,16 +165,16 @@
 SwPosition SwAnnotationItem::GetAnchorPosition() const
 {
     SwTxtFld* pFld = pFmtFld->GetTxtFld();
-    //if( pFld )
-    //{
+    if( pFld )
+    {
         SwTxtNode* pTNd = pFld->GetpTxtNode();
-    //  if( pTNd )
-    //  {
+        if( pTNd )
+        {
             SwPosition aPos( *pTNd );
             aPos.nContent.Assign( pTNd, *pFld->GetStart() );
             return aPos;
-    //  }
-    //}
+        }
+    }
 }
 
 bool SwAnnotationItem::UseElement()

-- 
To view, visit https://gerrit.libreoffice.org/2567
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I84d96224dbe51ff25fcb6d96e0be9a8dff89b0a1
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Joren De Cuyper <joren.libreoffice at telenet.be>



More information about the LibreOffice mailing list