From 579de45d1e5780633000688df9b7d704d66c60d6 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sun, 4 Mar 2007 21:18:33 +0000 Subject: [PATCH] BF [ 1673542 ] Can't add static image in report table cell --- .../org/compiere/print/layout/LayoutEngine.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/print/src/org/compiere/print/layout/LayoutEngine.java b/print/src/org/compiere/print/layout/LayoutEngine.java index e3b5ab1e66..16b897ab3a 100644 --- a/print/src/org/compiere/print/layout/LayoutEngine.java +++ b/print/src/org/compiere/print/layout/LayoutEngine.java @@ -1523,7 +1523,7 @@ public class LayoutEngine implements Pageable, Printable, Doc { MPrintFormatItem item = format.getItem(c); Object dataElement = null; - if (item.isPrinted() && item.getAD_Column_ID() > 0) // Text Columns + if (item.isPrinted()) // Text Columns { if (item.isTypePrintFormat()) { @@ -1533,7 +1533,9 @@ public class LayoutEngine implements Pageable, Printable, Doc { if (item.isImageField()) { - Object obj = printData.getNode(new Integer(item.getAD_Column_ID())); + Object obj = null; + if (item.getAD_Column_ID() > 0) // teo_sarca, [ 1673542 ] + obj = printData.getNode(new Integer(item.getAD_Column_ID())); if (obj == null) ; else if (obj instanceof PrintDataElement) @@ -1559,7 +1561,9 @@ public class LayoutEngine implements Pageable, Printable, Doc } else if (item.isBarcode()) { - Object obj = printData.getNode(new Integer(item.getAD_Column_ID())); + Object obj = null; + if (item.getAD_Column_ID() > 0) // teo_sarca, [ 1673542 ] + obj = printData.getNode(new Integer(item.getAD_Column_ID())); if (obj == null) ; else if (obj instanceof PrintDataElement) @@ -1582,7 +1586,9 @@ public class LayoutEngine implements Pageable, Printable, Doc } else { - Object obj = printData.getNode(new Integer(item.getAD_Column_ID())); + Object obj = null; + if (item.getAD_Column_ID() > 0) // teo_sarca, [ 1673542 ] + obj = printData.getNode(new Integer(item.getAD_Column_ID())); if (obj == null) ; else if (obj instanceof PrintDataElement)