summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2009-06-10 12:18:55 +0000
committerPhilipp Lohmann <pl@openoffice.org>2009-06-10 12:18:55 +0000
commit2651918016923f6f9cd617aa84c1b7d40c1ed914 (patch)
treebab5b8d3fae955917f5ae44e96e461dabe39d252 /vcl/source
parent706d4c761e10840fc03458896a0360c514b6cae1 (diff)
avoid overpainting of border
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/printdlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index a79537aacf27..121278bf21df 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -1428,9 +1428,9 @@ void PrintDialog::Resize()
aPrefSize.Width() = nPreviewLength - 2* aPixDiff.Width();
Point aCtrlPos( 2*aPixDiff.Width(), 3*aPixDiff.Height() + nPreviewLength );
maPreviewCtrlRow.setManagedArea( Rectangle( aCtrlPos, aPrefSize ) );
- maPreviewBackground.Left() = aPixDiff.Width();
- maPreviewBackground.Top() = aPixDiff.Height();
- maPreviewBackground.Right() = aPixDiff.Width() + nPreviewLength;
+ maPreviewBackground.Left() = aPixDiff.Width() - 2;
+ maPreviewBackground.Top() = aPixDiff.Height() - 2;
+ maPreviewBackground.Right() = aPixDiff.Width() + nPreviewLength + 2;
maPreviewBackground.Bottom() = maPreviewCtrlRow.getManagedArea().Bottom() + aPixDiff.Height();
// and do the preview; however the metafile does not need to be gotten anew