summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-12-07 22:39:27 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-12-07 22:39:27 +0100
commitc2d8fed349747f526a74cde3fcd36c494fc199b2 (patch)
tree161a7e0f03ac667a21d08b16e70947563a104b2c /wizards
parent413a0655adec3e9364bc94afff638a5a9f88560c (diff)
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
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/form/StyleApplier.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java
index 3e6b087d96e7..cfb94438e70a 100644
--- a/wizards/com/sun/star/wizards/form/StyleApplier.java
+++ b/wizards/com/sun/star/wizards/form/StyleApplier.java
@@ -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.SPACE);
- return Integer.parseInt(sPropValue);
+ return Integer.decode(sPropValue).intValue();
}
}
}