diff options
Diffstat (limited to 'sd/source/ui/dlg/headerfooterdlg.cxx')
-rw-r--r-- | sd/source/ui/dlg/headerfooterdlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx index 183f29753717..74da198765ef 100644 --- a/sd/source/ui/dlg/headerfooterdlg.cxx +++ b/sd/source/ui/dlg/headerfooterdlg.cxx @@ -906,10 +906,10 @@ void PresLayoutPreview::Paint( const Rectangle& ) nWidth = long( (double)(nHeight * maPageSize.Width()) / (double)maPageSize.Height() ); } - maOutRect.nLeft += (maOutRect.GetWidth() - nWidth) >> 1; - maOutRect.nRight = maOutRect.nLeft + nWidth - 1; - maOutRect.nTop += (maOutRect.GetHeight() - nHeight) >> 1; - maOutRect.nBottom = maOutRect.nTop + nHeight - 1; + maOutRect.Left() += (maOutRect.GetWidth() - nWidth) >> 1; + maOutRect.Right() = maOutRect.Left() + nWidth - 1; + maOutRect.Top() += (maOutRect.GetHeight() - nHeight) >> 1; + maOutRect.Bottom() = maOutRect.Top() + nHeight - 1; // draw decoration frame DecorationView aDecoView( this ); |