Skip to content

Commit 602ac10

Browse files
xzel23svanteschubert
authored andcommitted
remove unnecessary cast
1 parent edcaf49 commit 602ac10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

odfdom/src/main/java/org/odftoolkit/odfdom/changes/JsonOperationConsumer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,11 +1741,11 @@ static void format(
17411741
double heightFactor = 1;
17421742
double widthFactor = 1;
17431743
if (newHeight > 0 && newHeight != gHeight) {
1744-
heightFactor = (double) newHeight / (double) gHeight;
1744+
heightFactor = newHeight / (double) gHeight;
17451745
targetNode.setUserData("groupHeight", newHeight, null);
17461746
}
17471747
if (newWidth > 0 && newWidth != gWidth) {
1748-
widthFactor = (double) newWidth / (double) gWidth;
1748+
widthFactor = newWidth / (double) gWidth;
17491749
targetNode.setUserData("groupWidth", newHeight, null);
17501750
}
17511751
Node child = targetNode.getFirstChild();

0 commit comments

Comments
 (0)