Revision 28193 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/table/models/TableColorButtonColumnEditor.java

View differences:

TableColorButtonColumnEditor.java
67 67
			if ((tableModel != null) && (table != null)) {
68 68
				String newColor = currentColor.getRed() + "," + currentColor.getGreen() + "," + currentColor.getBlue();
69 69
				if (!newColor.equals(tableModel.getValueAt(table.getSelectedRow(), 2))) {
70
					tableModel.setValueAt(newColor, table.getSelectedRow(), 2);
70
					if (! (tableModel instanceof ROIsTableModel))
71
						tableModel.setValueAt(newColor, table.getSelectedRow(), 2);
71 72
				}
72 73
			}
73 74
			fireEditingStopped();

Also available in: Unified diff