put in right place
This commit is contained in:
parent
a06ce588fc
commit
487e9c42ea
1 changed files with 3 additions and 3 deletions
|
@ -96,11 +96,11 @@ public class ColorDialogs {
|
||||||
|
|
||||||
public static String colorToString(int color) {
|
public static String colorToString(int color) {
|
||||||
if ((0xFF000000 & color) == 0xFF000000) {
|
if ((0xFF000000 & color) == 0xFF000000) {
|
||||||
return "#" + Integer.toHexString(color & 0x00FFFFFF); //$NON-NLS-1$
|
|
||||||
} else {
|
|
||||||
private final static String ZEROES = "000000";
|
private final static String ZEROES = "000000";
|
||||||
String c = Integer.toHexString(color);
|
String c = Integer.toHexString(color & 0x00FFFFFF);
|
||||||
return "#" + c.length() <= 6 ? ZEROES.substring(c.length()) + c : c; //$NON-NLS-1$
|
return "#" + c.length() <= 6 ? ZEROES.substring(c.length()) + c : c; //$NON-NLS-1$
|
||||||
|
} else {
|
||||||
|
return "#" + Integer.toHexString(color); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue