diff options
Diffstat (limited to 'sd/source/ui/func/futext.cxx')
-rw-r--r-- | sd/source/ui/func/futext.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index 549248f15223..11ca800e6844 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -1377,14 +1377,11 @@ void FuText::ChangeFontSize( bool bGrow, OutlinerView* pOLV, const FontList* pFo pOLV = pView->GetTextEditOutlinerView(); if( pOLV ) { - EditEngine* pEditEngine = pOLV->GetEditView().GetEditEngine(); - if( pEditEngine ) - { - ESelection aSel; - aSel.nEndPara = pEditEngine->GetParagraphCount()-1; - aSel.nEndPos = pEditEngine->GetTextLen(aSel.nEndPara); - pOLV->SetSelection(aSel); - } + EditEngine& rEditEngine = pOLV->GetEditView().getEditEngine(); + ESelection aSel; + aSel.nEndPara = rEditEngine.GetParagraphCount() - 1; + aSel.nEndPos = rEditEngine.GetTextLen(aSel.nEndPara); + pOLV->SetSelection(aSel); ChangeFontSize( bGrow, pOLV, pFontList, pView ); } |