vcl/unx/generic/printer/printerinfomanager.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit c8dd1c22d7512d4922461350c6cb804cd0864e0b
Author:     Michael Stahl <[email protected]>
AuthorDate: Wed Jan 23 16:23:18 2019 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Thu Jan 24 10:25:22 2019 +0100

    vcl: unx: apply configuration to "Generic Printer" so it's PDF ...
    
    ... by default, instead of leaving it with
    m_nPSLevel == 0 && m_nPDFDevice == 0.
    
    Change-Id: I44059ac39791442602cbc48582670d98edc578ee
    Reviewed-on: https://gerrit.libreoffice.org/66802
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/vcl/unx/generic/printer/printerinfomanager.cxx 
b/vcl/unx/generic/printer/printerinfomanager.cxx
index cc4fb0b88485..095f4ca696c9 100644
--- a/vcl/unx/generic/printer/printerinfomanager.cxx
+++ b/vcl/unx/generic/printer/printerinfomanager.cxx
@@ -462,6 +462,9 @@ void PrinterInfoManager::initialize()
 
                 setDefaultPaper( aPrinter.m_aInfo.m_aContext );
 
+                // if it's a "Generic Printer", apply defaults from config...
+                aPrinter.m_aInfo.resolveDefaultBackend();
+
                 // finally insert printer
                 FileBase::getFileURLFromSystemPath( aFile.PathToFileName(), 
aPrinter.m_aFile );
                 aPrinter.m_aGroup       = aConfig.GetGroupName( nGroup );
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to