[Libreoffice-commits] core.git: vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jan 15 13:03:34 UTC 2019


 vcl/source/window/printdlg.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit dcf185ea162a4f593c66639cb3aebdc9c3d1a60f
Author:     heiko tietze <tietze.heiko at gmail.com>
AuthorDate: Tue Jan 15 09:38:00 2019 +0100
Commit:     Heiko Tietze <tietze.heiko at gmail.com>
CommitDate: Tue Jan 15 14:03:12 2019 +0100

    Resolves: tdf#122633 - Print dialog Preview is Off
    
    By default on now
    
    Change-Id: I7619d290e3dd9032b765057b8878d5dad035eafc
    Reviewed-on: https://gerrit.libreoffice.org/66351
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <tietze.heiko at gmail.com>

diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx
index 982d985397fb..73d7b5b9a50f 100644
--- a/vcl/source/window/printdlg.cxx
+++ b/vcl/source/window/printdlg.cxx
@@ -867,10 +867,10 @@ void PrintDialog::readFromSettings()
     // preview box
     aValue = pItem->getValue( "PrintDialog",
                               "HasPreview" );
-    if ( aValue.equalsIgnoreAsciiCase("true") )
-        mpPreviewBox->Check( true );
-    else
+    if ( aValue.equalsIgnoreAsciiCase("false") )
         mpPreviewBox->Check( false );
+    else
+        mpPreviewBox->Check( true );
 
 }
 


More information about the Libreoffice-commits mailing list