From fe576bd5f574de392ae6fd8a47afa38c0770bb9b Mon Sep 17 00:00:00 2001 From: Lorenzo Tilve Date: Mon, 18 Jan 2010 09:11:22 +0100 Subject: [PATCH] ItEr43S10SoporteImpresionMultiplesPaxinasItEr42S15: Fixed printing parameter problem when selecting labels and resources --- .../main/java/org/navalplanner/web/print/CutyPrint.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/navalplanner-webapp/src/main/java/org/navalplanner/web/print/CutyPrint.java b/navalplanner-webapp/src/main/java/org/navalplanner/web/print/CutyPrint.java index aa11e18c5..499c2f9e9 100644 --- a/navalplanner-webapp/src/main/java/org/navalplanner/web/print/CutyPrint.java +++ b/navalplanner-webapp/src/main/java/org/navalplanner/web/print/CutyPrint.java @@ -157,7 +157,7 @@ public class CutyPrint { try { // CutyCapt command execution - LOG.debug(captureString); + LOG.warn(captureString); Process print; Process server = null; @@ -210,17 +210,16 @@ public class CutyPrint { while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); } - String includeCSSLines = "body { width: " + width + "px; } \n"; + String includeCSSLines = " body { width: " + width + "px; } \n"; if ((labels != null) && (labels.equals("all"))) { - includeCSSLines = ".task-labels { display: inline !important;} "; + includeCSSLines += " .task-labels { display: inline !important;} \n"; } if ((resources != null) && (resources.equals("all"))) { - includeCSSLines = ".task-resources { display: inline !important;} "; + includeCSSLines += " .task-resources { display: inline !important;} \n"; } out.write(includeCSSLines.getBytes()); in.close(); out.close(); - LOG.debug(_("Generated CSS:") + generatedCSS.getAbsolutePath()); } catch (FileNotFoundException ex) { LOG.error(ex.getMessage() + _(" in the specified directory.")); System.exit(0);