revert the 11079 revision is necessary best implementation

This commit is contained in:
vpj-cd 2009-12-11 04:48:13 +00:00
parent 82f03410ac
commit 53d5d742c2
1 changed files with 2 additions and 6 deletions

View File

@ -797,7 +797,6 @@ public class MiniTable extends CTable implements IMiniTable
int row = getRowCount() + 1; int row = getRowCount() + 1;
setRowCount(row); setRowCount(row);
boolean symbol = false;
for (int col = 0; col < layout.length; col++) for (int col = 0; col < layout.length; col++)
{ {
Class<?> c = layout[col].getColClass(); Class<?> c = layout[col].getColClass();
@ -811,10 +810,9 @@ public class MiniTable extends CTable implements IMiniTable
} }
else else
{ {
if(col == 0 && symbol == false) if(col == 0 )
{ {
setValueAt(" Σ " , row -1 , col); setValueAt(" Σ " , row -1 , col);
symbol = true;
} }
else else
setValueAt(null , row - 1, col ); setValueAt(null , row - 1, col );
@ -874,7 +872,6 @@ public class MiniTable extends CTable implements IMiniTable
int row = getRowCount() + 1; int row = getRowCount() + 1;
setRowCount(row); setRowCount(row);
boolean symbol = true;
for (int col = 0; col < layout.length; col++) for (int col = 0; col < layout.length; col++)
{ {
Class<?> c = layout[col].getColClass(); Class<?> c = layout[col].getColClass();
@ -888,10 +885,9 @@ public class MiniTable extends CTable implements IMiniTable
} }
else else
{ {
if(c == String.class && symbol) if(col == 1 )
{ {
setValueAt(" Σ " , row -1 , col ); setValueAt(" Σ " , row -1 , col );
symbol = false;
} }
else else
setValueAt(null , row - 1, col ); setValueAt(null , row - 1, col );