tdf#152770 undo move warning about ppd with no resolution to use of resolution
and downgrade to SAL_INFO
Change-Id: I9a565aa12f83e7ed8dd6b0f903f7b18d62c16c4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146416
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 8f5c43b..42a2a2a 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -678,6 +678,10 @@ PPDParser::PPDParser(OUString aFile, const std::vector<PPDKey*>& keys)
auto pResolutions = getKey( "Resolution" );
if( pResolutions )
m_pDefaultResolution = pResolutions->getDefaultValue();
if (pResolutions == nullptr) {
SAL_INFO( "vcl.unx.print", "no Resolution in " << m_aFile);
}
SAL_INFO_IF(!m_pDefaultResolution, "vcl.unx.print", "no DefaultResolution in " + m_aFile);
auto pInputSlots = getKey( "InputSlot" );
if( pInputSlots )
@@ -832,6 +836,10 @@ PPDParser::PPDParser( OUString aFile ) :
auto pResolutions = getKey( "Resolution" );
if( pResolutions )
m_pDefaultResolution = pResolutions->getDefaultValue();
if (pResolutions == nullptr) {
SAL_INFO( "vcl.unx.print", "no Resolution in " << m_aFile);
}
SAL_INFO_IF(!m_pDefaultResolution, "vcl.unx.print", "no DefaultResolution in " + m_aFile);
auto pInputSlots = getKey( "InputSlot" );
if( pInputSlots )
@@ -1543,7 +1551,6 @@ void PPDParser::getDefaultResolution( int& rXRes, int& rYRes ) const
return;
}
SAL_WARN("vcl.unx.print", "no DefaultResolution in " << m_aFile << " assuming 300x300");
rXRes = 300;
rYRes = 300;
}