Skip to content

Commit 03ac38f

Browse files
committed
Cast to float explicitly
.net porting
1 parent c70f99c commit 03ac38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms/src/main/java/com/itextpdf/forms/fields/PdfFormField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1825,7 +1825,7 @@ public boolean regenerateField() {
18251825
float fieldRotation = 0;
18261826
if (this.getPdfObject().getAsDictionary(PdfName.MK) != null
18271827
&& this.getPdfObject().getAsDictionary(PdfName.MK).get(PdfName.R) != null) {
1828-
fieldRotation = this.getPdfObject().getAsDictionary(PdfName.MK).getAsFloat(PdfName.R);
1828+
fieldRotation = (float) this.getPdfObject().getAsDictionary(PdfName.MK).getAsFloat(PdfName.R);
18291829
//Get relative field rotation
18301830
fieldRotation += pageRotation;
18311831
}

0 commit comments

Comments
 (0)