Fix for latest commits

This commit is contained in:
Georgy Litvinov 2020-01-10 21:22:50 +01:00
parent 0bea531fa7
commit 0ed278f41f

View file

@ -96,9 +96,14 @@ public class TextStyleConverter extends StyleWithPropertiesConverterHelper {
}
this.bConvertFont = !config.useDefaultFont();
String minLS = config.minLetterSpacing().replaceAll("[a-zA-Z]", "");
String minLS = config.minLetterSpacing().replaceAll("[^0-9,.,-]", "");
if (!minLS.equals("")) {
this.minLetterSpacing = Double.parseDouble(minLS);
try {
this.minLetterSpacing = Double.parseDouble(minLS);
} catch (NumberFormatException e) {
System.out.println("Exception was thrown: \n" + e.toString());
}
}
}