summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/headerfooterdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/dlg/headerfooterdlg.cxx')
-rw-r--r--sd/source/ui/dlg/headerfooterdlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index 4260572f7264..be8c9b9641eb 100644
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -781,9 +781,9 @@ void PresLayoutPreview::Paint(vcl::RenderContext& rRenderContext, const ::tools:
nWidth = maPageSize.Height() == 0 ? 0 : long( static_cast<double>(nHeight * maPageSize.Width()) / static_cast<double>(maPageSize.Height()) );
}
- maOutRect.SetLeft( maOutRect.Left() + ((maOutRect.GetWidth() - nWidth) >> 1) );
+ maOutRect.AdjustLeft((maOutRect.GetWidth() - nWidth) >> 1 );
maOutRect.SetRight( maOutRect.Left() + nWidth - 1 );
- maOutRect.SetTop( maOutRect.Top() + ((maOutRect.GetHeight() - nHeight) >> 1) );
+ maOutRect.AdjustTop((maOutRect.GetHeight() - nHeight) >> 1 );
maOutRect.SetBottom( maOutRect.Top() + nHeight - 1 );
// draw decoration frame