small correction

This commit is contained in:
sonora 2015-06-17 02:38:04 +02:00
parent 6ce99abf89
commit b7660d7e4c

View file

@ -96,7 +96,7 @@ public class ColorDialogs {
public static String colorToString(int color) {
if ((0xFF000000 & color) == 0xFF000000) {
private String c = Integer.toHexString(color & 0x00FFFFFF);
String c = Integer.toHexString(color & 0x00FFFFFF);
return "#" + c.length() <= 6 ? "000000".substring(c.length()) + c : c; //$NON-NLS-1$
} else {
return "#" + Integer.toHexString(color); //$NON-NLS-1$