We need to call decode method considering this:
java.lang.NumberFormatException: For input string: "#FF9966" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:481) at java.lang.Integer.parseInt(Integer.java:527) at com.sun.star.wizards.form.StyleApplier.getStyleColor(StyleApplier.java:321) When creating form with wizard Partly reverts http://cgit.freedesktop.org/libreoffice/core/commit/?id=10e8e10605b9c52bd7fd8a0665dd4d358c733a66 Change-Id: Ide85566244e0dce1d30f6369d1f5d8d30534a01a
This commit is contained in:
@@ -318,7 +318,7 @@ public class StyleApplier
|
|||||||
{
|
{
|
||||||
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SEMI_COLON);
|
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SEMI_COLON);
|
||||||
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE);
|
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE);
|
||||||
return Integer.parseInt(sPropValue);
|
return Integer.decode(sPropValue).intValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user