IDEMPIERE-1318 Casting problem on BOM Viewer window. Base on patch from Richard Morales Herrera.
This commit is contained in:
parent
97663971b5
commit
a26f603e75
|
@ -159,11 +159,14 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel<Object> impl
|
||||||
}
|
}
|
||||||
|
|
||||||
// Color
|
// Color
|
||||||
final MTreeNode mNode = (MTreeNode) ((DefaultTreeNode<?>) node).getData();
|
Object data = ((DefaultTreeNode<?>) node).getData();
|
||||||
Color color = mNode.getColor();
|
if (data instanceof MTreeNode) {
|
||||||
if (color != null){
|
final MTreeNode mNode = (MTreeNode) data;
|
||||||
String hex = ZkCssHelper.createHexColorString(color);
|
Color color = mNode.getColor();
|
||||||
ZkCssHelper.appendStyle(tc, "color: #" + hex);
|
if (color != null){
|
||||||
|
String hex = ZkCssHelper.createHexColorString(color);
|
||||||
|
ZkCssHelper.appendStyle(tc, "color: #" + hex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// End color
|
// End color
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in New Issue