From a8b44e2565ff64ab1bc63624651ffdea7371359d Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 29 Jul 2009 14:35:18 +0000 Subject: [PATCH] BF [ 2828893 ] Problem with NextPage in Print Format https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2828893&group_id=176962 --- base/src/org/compiere/print/layout/LayoutEngine.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/print/layout/LayoutEngine.java b/base/src/org/compiere/print/layout/LayoutEngine.java index 9e4955135c..629e3dac79 100644 --- a/base/src/org/compiere/print/layout/LayoutEngine.java +++ b/base/src/org/compiere/print/layout/LayoutEngine.java @@ -85,6 +85,8 @@ import org.compiere.util.ValueNamePair; *
  • BF [ 1825876 ] Layout boxes with auto width not working *
  • FR [ 1966406 ] Report Engine: AD_PInstance_Logs should be displayed *
  • BF [ 2487307 ] LayoutEngine: NPE when Barcode field is null + *
  • BF [ 2828893 ] Problem with NextPage in Print Format + * https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2828893&group_id=176962 * @author victor.perez@e-evolution.com, e-Evolution *
  • BF [ 2011567 ] Implement Background Image for Document printed *
  • http://sourceforge.net/tracker/index.php?func=detail&aid=2011567&group_id=176962&atid=879335 @@ -1010,15 +1012,19 @@ public class LayoutEngine implements Pageable, Printable, Doc if (item.isSetNLPosition() && item.isRelativePosition()) m_tempNLPositon = 0; // New Page/Line - if (item.isNextPage()) // item.isPageBreak() // new page - newPage(false, false); - else if (item.isNextLine() && somethingPrinted) // new line + if (item.isNextLine() && somethingPrinted) // new line { newLine (); somethingPrinted = false; } else + { addX(m_lastWidth[m_area]); + } + if (item.isNextPage()) // item.isPageBreak() // new page + { + newPage(false, false); + } // Relative Position space if (item.isRelativePosition()) {