Skip to content

Commit

Permalink
Fix for plutext#146
Browse files Browse the repository at this point in the history
(Word 2013 PDF output VML miterlimit attribute value such as "83231f" cannot be parsed as BigDecimal)
  • Loading branch information
plutext committed May 25, 2015
1 parent 97b6515 commit 1a5e25a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/docx4j/vml/CTStroke.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class CTStroke implements Child
@XmlAttribute(name = "linestyle")
protected STStrokeLineStyle linestyle;
@XmlAttribute(name = "miterlimit")
protected BigDecimal miterlimit;
protected String miterlimit;
@XmlAttribute(name = "joinstyle")
protected STStrokeJoinStyle joinstyle;
@XmlAttribute(name = "endcap")
Expand Down Expand Up @@ -412,7 +412,7 @@ public void setLinestyle(STStrokeLineStyle value) {
* {@link BigDecimal }
*
*/
public BigDecimal getMiterlimit() {
public String getMiterlimit() {
return miterlimit;
}

Expand All @@ -424,7 +424,7 @@ public BigDecimal getMiterlimit() {
* {@link BigDecimal }
*
*/
public void setMiterlimit(BigDecimal value) {
public void setMiterlimit(String value) {
this.miterlimit = value;
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/docx4j/vml/officedrawing/CTStrokeChild.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public class CTStrokeChild
@XmlAttribute(name = "linestyle")
protected STStrokeLineStyle linestyle;
@XmlAttribute(name = "miterlimit")
protected BigDecimal miterlimit;
protected String miterlimit;
@XmlAttribute(name = "joinstyle")
protected STStrokeJoinStyle joinstyle;
@XmlAttribute(name = "endcap")
Expand Down Expand Up @@ -298,7 +298,7 @@ public void setLinestyle(STStrokeLineStyle value) {
* {@link BigDecimal }
*
*/
public BigDecimal getMiterlimit() {
public String getMiterlimit() {
return miterlimit;
}

Expand All @@ -310,7 +310,7 @@ public BigDecimal getMiterlimit() {
* {@link BigDecimal }
*
*/
public void setMiterlimit(BigDecimal value) {
public void setMiterlimit(String value) {
this.miterlimit = value;
}

Expand Down
2 changes: 1 addition & 1 deletion xsd/vml/vml-main.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ xmlns:x="urn:schemas-microsoft-com:office:excel"
<xsd:documentation>Stroke Line Style</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="miterlimit" type="xsd:decimal" use="optional">
<xsd:attribute name="miterlimit" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Miter Joint Limit</xsd:documentation>
</xsd:annotation>
Expand Down
2 changes: 1 addition & 1 deletion xsd/vml/vml-officedrawing.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@
<xsd:documentation>Stroke Line Style</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="miterlimit" type="xsd:decimal" use="optional">
<xsd:attribute name="miterlimit" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Miter Joint Limit</xsd:documentation>
</xsd:annotation>
Expand Down

0 comments on commit 1a5e25a

Please sign in to comment.