@@ -73,7 +73,7 @@ public static MinMaxWidth countRotationMinMaxWidth(MinMaxWidth minMaxWidth, Abst
73
73
PropertiesBackup backup = new PropertiesBackup (renderer );
74
74
Float rotation = backup .storeFloatProperty (Property .ROTATION_ANGLE );
75
75
if (rotation != null ) {
76
- float angle = rotation . floatValue () ;
76
+ float angle = ( float ) rotation ;
77
77
//This width results in more accurate values for min-width calculations.
78
78
float layoutWidth = minMaxWidth .getMaxWidth () + MinMaxWidthUtils .getEps ();
79
79
LayoutResult layoutResult = renderer .layout (new LayoutContext (new LayoutArea (1 , new Rectangle (layoutWidth , AbstractRenderer .INF ))));
@@ -89,15 +89,15 @@ public static MinMaxWidth countRotationMinMaxWidth(MinMaxWidth minMaxWidth, Abst
89
89
Float rotatedMinWidth = getLayoutRotatedWidth (renderer , (float ) rotationMinMaxWidth .getMinWidthOrigin (), layoutBBox , angle );
90
90
if (rotatedMinWidth != null ) {
91
91
if (rotatedMinWidth > rotationMinMaxWidth .getMaxWidth ()) {
92
- rotationMinMaxWidth .setChildrenMinWidth (rotatedMinWidth . floatValue () );
92
+ rotationMinMaxWidth .setChildrenMinWidth (( float ) rotatedMinWidth );
93
93
Float rotatedMaxWidth = getLayoutRotatedWidth (renderer , (float ) rotationMinMaxWidth .getMaxWidthOrigin (), layoutBBox , angle );
94
94
if (rotatedMaxWidth != null && rotatedMaxWidth > rotatedMinWidth ) {
95
- rotationMinMaxWidth .setChildrenMaxWidth (rotatedMaxWidth . floatValue () );
95
+ rotationMinMaxWidth .setChildrenMaxWidth (( float ) rotatedMaxWidth );
96
96
} else {
97
- rotationMinMaxWidth .setChildrenMaxWidth (rotatedMinWidth . floatValue () );
97
+ rotationMinMaxWidth .setChildrenMaxWidth (( float ) rotatedMinWidth );
98
98
}
99
99
} else {
100
- rotationMinMaxWidth .setChildrenMinWidth (rotatedMinWidth . floatValue () );
100
+ rotationMinMaxWidth .setChildrenMinWidth (( float ) rotatedMinWidth );
101
101
}
102
102
backup .restoreProperty (Property .ROTATION_ANGLE );
103
103
return rotationMinMaxWidth ;
@@ -123,7 +123,7 @@ public static Float retrieveRotatedLayoutWidth(float availableWidth, AbstractRen
123
123
PropertiesBackup backup = new PropertiesBackup (renderer );
124
124
Float rotation = backup .storeFloatProperty (Property .ROTATION_ANGLE );
125
125
if (rotation != null && renderer .<UnitValue >getProperty (Property .WIDTH ) == null ) {
126
- float angle = rotation . floatValue () ;
126
+ float angle = ( float ) rotation ;
127
127
backup .storeFloatProperty (Property .HEIGHT );
128
128
backup .storeFloatProperty (Property .MIN_HEIGHT );
129
129
backup .storeFloatProperty (Property .MAX_HEIGHT );
0 commit comments