summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2011-10-24 15:05:39 +0100
committerNoel Power <noel.power@novell.com>2011-10-24 15:07:53 +0100
commit1b2b2283000850dedb00659ce49a0c5eee4aeebb (patch)
tree39dc60a1baec1b07226cb3b41825b958840b768d /toolkit
parent82fb60bc563b444679617396cb4d22a740427e6d (diff)
fix wae "aRect uninitialized when used within its own initialization"
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/dialogcontrol.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx
index f463bfae910f..35eff0ef9074 100644
--- a/toolkit/source/controls/dialogcontrol.cxx
+++ b/toolkit/source/controls/dialogcontrol.cxx
@@ -1033,7 +1033,8 @@ void UnoFrameControl::ImplSetPosSize( Reference< XControl >& rxCtrl )
if ( !bOwnCtrl && sTitle.getLength() )
{
// Adjust Y based on height of Title
- ::Rectangle aRect = pOutDev->GetTextRect( aRect, sTitle );
+ ::Rectangle aRect;
+ aRect = pOutDev->GetTextRect( aRect, sTitle );
nY = nY + ( aRect.GetHeight() / 2 );
}
}