take apart for debugging
This commit is contained in:
parent
54becff04e
commit
09fc49db87
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,8 @@ public class ColorDialogs {
|
||||||
public static String colorToString(int color) {
|
public static String colorToString(int color) {
|
||||||
if ((0xFF000000 & color) == 0xFF000000) {
|
if ((0xFF000000 & color) == 0xFF000000) {
|
||||||
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$
|
c = c.length() <= 6 ? "000000".substring(c.length()) + c : c; //$NON-NLS-1$
|
||||||
|
return "#" + c; //$NON-NLS-1$
|
||||||
} else {
|
} else {
|
||||||
return "#" + Integer.toHexString(color); //$NON-NLS-1$
|
return "#" + Integer.toHexString(color); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue