summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJoren De Cuyper <joren.libreoffice@telenet.be>2013-03-06 18:13:22 +0100
committerTor Lillqvist <tml@iki.fi>2013-03-06 17:16:26 +0000
commite8e068770e35dc4f7a5e793732be6ddef96d7ba7 (patch)
tree89cdb20a11b58e14e5e4b5131ca0dc4a44e8bdfc /sw
parent6cdce7fdce4905804554856f30aaf3cf68ebeaac (diff)
delete previous uncommented comments in positionhelper.cxx
Change-Id: I0f177a078b915c1220423ea583e749de4d02e384 Reviewed-on: https://gerrit.libreoffice.org/2571 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/fields/postithelper.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/sw/source/core/fields/postithelper.cxx b/sw/source/core/fields/postithelper.cxx
index b68fe12a4154..1937cee7c6fa 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()