[Libreoffice-commits] core.git: sw/source

Joren De Cuyper joren.libreoffice at telenet.be
Wed Mar 6 07:23:49 PST 2013


 sw/source/core/fields/postithelper.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit e4f492ac0134895ac60e92c54a80b8c7f49615a1
Author: Joren De Cuyper <joren.libreoffice at telenet.be>
Date:   Wed Mar 6 14:49:21 2013 +0100

    It is safer to uncomment these checks in the postithelper
    
    Change-Id: I84d96224dbe51ff25fcb6d96e0be9a8dff89b0a1
    Reviewed-on: https://gerrit.libreoffice.org/2567
    Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
    Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>

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 @@ unsigned long SwPostItHelper::getPageInfo( SwRect& rPageFrm, const SwRootFrm* pR
 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()


More information about the Libreoffice-commits mailing list