[Libreoffice-commits] core.git: sw/source
Joren De Cuyper
joren.libreoffice at telenet.be
Wed Mar 6 09:16:46 PST 2013
sw/source/core/fields/postithelper.cxx | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
New commits:
commit e8e068770e35dc4f7a5e793732be6ddef96d7ba7
Author: Joren De Cuyper <joren.libreoffice at telenet.be>
Date: Wed Mar 6 18:13:22 2013 +0100
delete previous uncommented comments in positionhelper.cxx
Change-Id: I0f177a078b915c1220423ea583e749de4d02e384
Reviewed-on: https://gerrit.libreoffice.org/2571
Reviewed-by: Tor Lillqvist <tml at iki.fi>
Tested-by: Tor Lillqvist <tml at iki.fi>
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx
index b68fe12..1937cee 100644
--- a/sw/source/core/fields/postithelper.cxx
+++ b/sw/source/core/fields/postithelper.cxx
@@ -165,16 +165,11 @@ unsigned long SwPostItHelper::getPageInfo( SwRect& rPageFrm, const SwRootFrm* pR
SwPosition SwAnnotationItem::GetAnchorPosition() const
{
SwTxtFld* pFld = pFmtFld->GetTxtFld();
- if( pFld )
- {
- SwTxtNode* pTNd = pFld->GetpTxtNode();
- if( pTNd )
- {
- SwPosition aPos( *pTNd );
- aPos.nContent.Assign( pTNd, *pFld->GetStart() );
- return aPos;
- }
- }
+ SwTxtNode* pTNd = pFld->GetpTxtNode();
+
+ SwPosition aPos( *pTNd );
+ aPos.nContent.Assign( pTNd, *pFld->GetStart() );
+ return aPos;
}
bool SwAnnotationItem::UseElement()
More information about the Libreoffice-commits
mailing list