summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/templdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r--sfx2/source/dialog/templdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index de2cf05e7743..38d9fd8b4cc4 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -374,8 +374,8 @@ void SfxTemplatePanelControl::StateChanged( StateChangedType nStateChange )
Point aPoint = pEditWin->OutputToScreenPixel( pEditWin->GetPosPixel() );
aPoint = GetParent()->ScreenToOutputPixel( aPoint );
Size aWinSize = GetSizePixel();
- aPoint.setX( aPoint.X() + aSize.Width() - aWinSize.Width() - 20 );
- aPoint.setY( aPoint.Y() + aSize.Height() / 2 - aWinSize.Height() / 2 );
+ aPoint.AdjustX(aSize.Width() - aWinSize.Width() - 20 );
+ aPoint.AdjustY(aSize.Height() / 2 - aWinSize.Height() / 2 );
// SetFloatingPos( aPoint );
}
@@ -2310,7 +2310,7 @@ void SfxTemplateDialog_Impl::Resize()
pTreeBox->SetPosPixel(aFmtPos);
}
else
- aFmtSize.setHeight( aFmtSize.Height() + aFilterSize.Height() );
+ aFmtSize.AdjustHeight(aFilterSize.Height() );
aFilterLb->SetSizePixel(aFilterSize);
aFmtLb->SetSizePixel( aFmtSize );