[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdeprint
From:       Michael Goffioul <goffioul () imec ! be>
Date:       2004-03-10 12:56:12
Message-ID: 20040310125612.B6ECF99A2 () office ! kde ! org
[Download RAW message or body]

CVS commit by goffioul: 

Make print-to-kmail-as-PDF work again


  M +2 -2      kdeprintd.cpp   1.18


--- kdelibs/kdeprint/kdeprintd.cpp  #1.17:1.18
@@ -125,10 +125,10 @@ int KDEPrintd::print(const QString& cmd,
                 {
                         QString tmpFilename = locateLocal( "tmp", "kdeprint_" + \
                kapp->randomString( 8 ) );
-                        command.replace( re.pos( 0 ), re.matchedLength(), \
KProcess::quote( tmpFilename ) ); +                        command.replace( re, \
KProcess::quote( tmpFilename ) );  proc->setOutput( re.cap( 1 ) );
                         proc->setTempOutput( tmpFilename );
                 }
                 else
-                        command.replace( re.pos( 0 ), re.matchedLength(), \
KProcess::quote( re.cap( 1 ) ) ); +                        command.replace( re, \
KProcess::quote( re.cap( 1 ) ) );  }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic