diff --git a/document/fr.opensagres.xdocreport.document.odt/src/main/java/fr/opensagres/xdocreport/document/odt/images/ODTImageRegistry.java b/document/fr.opensagres.xdocreport.document.odt/src/main/java/fr/opensagres/xdocreport/document/odt/images/ODTImageRegistry.java index 973786488..6449ee421 100644 --- a/document/fr.opensagres.xdocreport.document.odt/src/main/java/fr/opensagres/xdocreport/document/odt/images/ODTImageRegistry.java +++ b/document/fr.opensagres.xdocreport.document.odt/src/main/java/fr/opensagres/xdocreport/document/odt/images/ODTImageRegistry.java @@ -82,7 +82,7 @@ public Float getSize( String sizeAsDxa ) //TODO parse string containing unit information like "0.582cm" try{ - float sizeAsPixel = Float.parseFloat(sizeAsDxa); + float sizeAsPixel = Float.parseFloat(sizeAsDxa.split(POINT_UNIT)[0]); sizeAsPixel = (sizeAsPixel / 0.75f) ; return Float.valueOf(sizeAsPixel); }catch(NumberFormatException e){