From 9d312c1f2dfd15f06e3d4084563b60496a822cbe Mon Sep 17 00:00:00 2001 From: mjudd Date: Wed, 7 Mar 2007 00:32:13 +0000 Subject: [PATCH] BugFix https://sourceforge.net/tracker/?func=detail&atid=879332&aid=1673714&group_id=176962 --- print/src/org/compiere/print/layout/PrintElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print/src/org/compiere/print/layout/PrintElement.java b/print/src/org/compiere/print/layout/PrintElement.java index 1e6c49920f..55847f27bc 100644 --- a/print/src/org/compiere/print/layout/PrintElement.java +++ b/print/src/org/compiere/print/layout/PrintElement.java @@ -126,7 +126,7 @@ public abstract class PrintElement implements ImageObserver p_maxWidth = maxWidth; // p_FieldAlignmentType = FieldAlignmentType; - if (p_FieldAlignmentType == null || p_FieldAlignmentType == MPrintFormatItem.FIELDALIGNMENTTYPE_Default) + if (p_FieldAlignmentType.equals(null) || p_FieldAlignmentType.equals(MPrintFormatItem.FIELDALIGNMENTTYPE_Default)) p_FieldAlignmentType = MPrintFormatItem.FIELDALIGNMENTTYPE_LeadingLeft; // p_sizeCalculated = calculateSize();