From 37692c7e0398ff3a61676023c14164b19a3cf676 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Thu, 10 Dec 2009 05:14:23 +0000 Subject: [PATCH] =?UTF-8?q?a=20bug=20on=20the=20implementation=20of=20?= =?UTF-8?q?=CE=A3=20row?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit kind regards Victor Perez www.e-evolution.com --- client/src/org/compiere/minigrid/MiniTable.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/minigrid/MiniTable.java b/client/src/org/compiere/minigrid/MiniTable.java index 1681dfb4ab..75a1d94cb4 100644 --- a/client/src/org/compiere/minigrid/MiniTable.java +++ b/client/src/org/compiere/minigrid/MiniTable.java @@ -797,6 +797,7 @@ public class MiniTable extends CTable implements IMiniTable int row = getRowCount() + 1; setRowCount(row); + boolean symbol = false; for (int col = 0; col < layout.length; col++) { Class c = layout[col].getColClass(); @@ -810,9 +811,10 @@ public class MiniTable extends CTable implements IMiniTable } else { - if(col == 0 ) + if(col == 0 && symbol == false) { setValueAt(" Σ " , row -1 , col); + symbol = true; } else setValueAt(null , row - 1, col ); @@ -872,6 +874,7 @@ public class MiniTable extends CTable implements IMiniTable int row = getRowCount() + 1; setRowCount(row); + boolean symbol = true; for (int col = 0; col < layout.length; col++) { Class c = layout[col].getColClass(); @@ -885,9 +888,10 @@ public class MiniTable extends CTable implements IMiniTable } else { - if(col == 1 ) + if(c == String.class && symbol) { setValueAt(" Σ " , row -1 , col ); + symbol = false; } else setValueAt(null , row - 1, col );