diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-04-04 12:31:08 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-04-04 14:05:10 +0200 |
commit | d940d478be430ea59956dacc42df1f4fd2126506 (patch) | |
tree | 5e7ef8ffb3095392f94a7c726b86436359b25a72 /vcl/source/window | |
parent | e278df1a14c5cb5dbb7add5d6ed5dd52da131e92 (diff) |
PrintPreviewWindow dynamic preview Bitmap III
Corrected condition for test if maximum is reached
Change-Id: I24795dfa15093fe0f4eb71d94e18b9f0a33a6891
Reviewed-on: https://gerrit.libreoffice.org/52372
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'vcl/source/window')
-rw-r--r-- | vcl/source/window/printdlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index 23da5dd941d5..6ca8876aea27 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -331,7 +331,7 @@ void PrintDialog::PrintPreviewWindow::preparePreviewBitmap() const double fPreviewSizeSquare(static_cast<double>(maPreviewBitmap.GetSizePixel().getWidth() * maPreviewBitmap.GetSizePixel().getHeight())); // test as equal up to 0.1% (0.001) - if(fPreviewSizeSquare == 0.0 || fabs((fScaledSizeSquare / fPreviewSizeSquare) - 1.0) < 0.001) + if(fPreviewSizeSquare != 0.0 && fabs((fScaledSizeSquare / fPreviewSizeSquare) - 1.0) < 0.001) { // maximum is reached, avoid bigger scaling return; |