Fix [ 1960007 ] Bottom line was always displayed whether or not header lines

Implementing fix proposed by ashley
This commit is contained in:
Carlos Ruiz 2008-05-08 04:49:46 +00:00
parent 5d7be47e19
commit ad86833b08
1 changed files with 42 additions and 31 deletions

View File

@ -1506,6 +1506,12 @@ public class TableElement extends PrintElement
// X end line
if (row == m_data.length-1) // last Line
{
/**
* Bug fix - Bottom line was always displayed whether or not header lines was set to be visible
* @author ashley
*/
if (m_tFormat.isPaintHeaderLines())
{
g2D.setPaint(m_tFormat.getHeaderLine_Color());
g2D.setStroke(m_tFormat.getHeader_Stroke());
@ -1514,6 +1520,11 @@ public class TableElement extends PrintElement
curY += (2 * m_tFormat.getLineStroke().floatValue()); // thick
}
else
{
curY += m_tFormat.getLineStroke().floatValue();
}
}
else
{
// next line is a funcion column -> underline this
boolean nextIsFunction = m_functionRows.contains(new Integer(row+1));