diff options
Diffstat (limited to 'svx/source/dialog/dlgctrl.cxx')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 99ee33930e06..1a41ce617889 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dlgctrl.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: aw $ $Date: 2000-10-30 10:48:03 $ + * last change: $Author: os $ $Date: 2001-05-10 14:21:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1733,6 +1733,12 @@ SvxXRectPreview::SvxXRectPreview( Window* pParent, const ResId& rResId, XOutputD { SetMapMode( MAP_100TH_MM ); Size aSize = GetOutputSize(); + + Size aTmp(1, 1); + aTmp = PixelToLogic(aTmp); + aSize.Width() -= aTmp.Width() /2; + aSize.Height() -= aTmp.Height() /2; + aRect = Rectangle( Point(), aSize ); InitSettings( TRUE, TRUE ); } |