Fix [ 1960007 ] Bottom line was always displayed whether or not header lines
Implementing fix proposed by ashley
This commit is contained in:
parent
5d7be47e19
commit
ad86833b08
|
@ -1506,6 +1506,12 @@ public class TableElement extends PrintElement
|
||||||
|
|
||||||
// X end line
|
// X end line
|
||||||
if (row == m_data.length-1) // last 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.setPaint(m_tFormat.getHeaderLine_Color());
|
||||||
g2D.setStroke(m_tFormat.getHeader_Stroke());
|
g2D.setStroke(m_tFormat.getHeader_Stroke());
|
||||||
|
@ -1514,6 +1520,11 @@ public class TableElement extends PrintElement
|
||||||
curY += (2 * m_tFormat.getLineStroke().floatValue()); // thick
|
curY += (2 * m_tFormat.getLineStroke().floatValue()); // thick
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
curY += m_tFormat.getLineStroke().floatValue();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
// next line is a funcion column -> underline this
|
// next line is a funcion column -> underline this
|
||||||
boolean nextIsFunction = m_functionRows.contains(new Integer(row+1));
|
boolean nextIsFunction = m_functionRows.contains(new Integer(row+1));
|
||||||
|
|
Loading…
Reference in New Issue