summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJoren De Cuyper <joren.libreoffice@telenet.be>2013-03-06 14:49:21 +0100
committerBosdonnat Cedric <cedric.bosdonnat@free.fr>2013-03-06 15:23:29 +0000
commite4f492ac0134895ac60e92c54a80b8c7f49615a1 (patch)
treea5db91dad8464fe029d88aad6bef835d74364dc1 /sw
parent050463ca89c93f033e7e3125e06f71514ab5e5cb (diff)
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@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/fields/postithelper.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx
index 570631947042..b68fe12a4154 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()