summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshtxt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/unodraw/unoshtxt.cxx')
-rw-r--r--svx/source/unodraw/unoshtxt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshtxt.cxx b/svx/source/unodraw/unoshtxt.cxx
index 6a5bd4febfe8..e0ade5699832 100644
--- a/svx/source/unodraw/unoshtxt.cxx
+++ b/svx/source/unodraw/unoshtxt.cxx
@@ -439,9 +439,9 @@ void SvxTextEditSourceImpl::SetupOutliner()
return;
SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>( mpObject );
- tools::Rectangle aPaintRect;
if( pTextObj )
{
+ tools::Rectangle aPaintRect;
tools::Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
pTextObj->SetupOutlinerFormatting( *mpOutliner, aPaintRect );
@@ -460,9 +460,9 @@ void SvxTextEditSourceImpl::UpdateOutliner()
return;
SdrTextObj* pTextObj = dynamic_cast<SdrTextObj*>( mpObject );
- tools::Rectangle aPaintRect;
if( pTextObj )
{
+ tools::Rectangle aPaintRect;
tools::Rectangle aBoundRect( pTextObj->GetCurrentBoundRect() );
pTextObj->UpdateOutlinerFormatting( *mpOutliner, aPaintRect );