[Libreoffice-commits] .: vcl/unx

Caolán McNamara caolan at kemper.freedesktop.org
Fri Oct 7 06:50:43 PDT 2011


 vcl/unx/generic/printer/ppdparser.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit a99322071afd45c17df973a965e459111c93f36b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 7 14:47:02 2011 +0100

    its not a secret which PPD is missing a DefaultResolution

diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 8b99f1a..a236e5f 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -824,7 +824,9 @@ PPDParser::PPDParser( const String& rFile ) :
     if( m_pResolutions )
         m_pDefaultResolution = m_pResolutions->getDefaultValue();
     DBG_ASSERT( m_pResolutions, "Warning: no Resolution in PPD\n" );
-    DBG_ASSERT( m_pDefaultResolution, "Warning: no DefaultResolution in PPD\n" );
+    DBG_ASSERT( m_pDefaultResolution,
+        rtl::OStringBuffer("Warning: no DefaultResolution in ").
+        append(rtl::OUStringToOString(rFile, osl_getThreadTextEncoding())).append('\n').getStr() );
 
     m_pInputSlots = getKey( String( RTL_CONSTASCII_USTRINGPARAM( "InputSlot" ) ) );
     if( m_pInputSlots )


More information about the Libreoffice-commits mailing list