You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by dv...@apache.org on 2006/11/09 17:33:17 UTC
svn commit: r472965 -
/xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
Author: dvholten
Date: Thu Nov 9 08:33:16 2006
New Revision: 472965
URL: http://svn.apache.org/viewvc?view=rev&rev=472965
Log:
fix some 'innovative' coding....
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java?view=diff&rev=472965&r1=472964&r2=472965
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java Thu Nov 9 08:33:16 2006
@@ -1,6 +1,6 @@
/*
- Copyright 1999-2003 The Apache Software Foundation
+ Copyright 1999-2003 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -282,7 +282,7 @@
//
if(pageIndex >= printedInputs.size()){
curIndex = -1;
- if (theCtx != null)
+ if (theCtx != null)
theCtx.dispose();
userAgent.displayMessage("Done");
return NO_SUCH_PAGE;
@@ -292,7 +292,7 @@
// Load a new document now if we are printing a new page
//
if(curIndex != pageIndex){
- if (theCtx != null)
+ if (theCtx != null)
theCtx.dispose();
// The following call will invoke this class' transcode
@@ -782,7 +782,7 @@
TranscodingHints.Key key){
String str = System.getProperty(property);
if(str != null){
- Boolean value = new Boolean("true".equalsIgnoreCase(str));
+ Boolean value = "true".equalsIgnoreCase(str) ? Boolean.TRUE : Boolean.FALSE;
transcoder.addTranscodingHint(key, value);
}
}