PDA

View Full Version : [FNR] ColorPalette.setValue doesn't change display value



gald
14 Oct 2010, 5:25 AM
original code


public void setValue(String value) {
value = value.replace("#", "");
this.value = value;
if (rendered) {
select(value);
}
}


patch code to correct the bug


public void setValue(String value) {
value = value.replace("#", "");
if (rendered) {
select(value);
}
this.value = value;
}


in the "select" method you check if "value == this.value" but if you change this.value before, nothing append...

sven
14 Oct 2010, 6:14 AM
Fixed in SVN as of revision 2265.

gald
14 Oct 2010, 6:21 AM
thanks for your great job !