File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
itext.tests/itext.svg.tests/itext/svg/utils
itext/itext.layout/itext/layout/renderer Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public virtual void ConvertLongerFloatToStringTest() {
167
167
[ NUnit . Framework . Test ]
168
168
public virtual void ConvertFloatMinimumToPdfTest ( ) {
169
169
float expected = 1.4E-45f ;
170
- float actual = SvgCssUtils . ConvertPtsToPx ( float . MinValue ) ;
170
+ float actual = SvgCssUtils . ConvertPtsToPx ( float . Epsilon ) ;
171
171
NUnit . Framework . Assert . AreEqual ( expected , actual , 0f ) ;
172
172
}
173
173
}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ internal static float AdjustLayoutBoxAccordingToFloats(IList<Rectangle> floatRen
81
81
return topShift ;
82
82
}
83
83
lastLeftAndRightBoxes = FindLastLeftAndRightBoxes ( layoutBox , boxesAtYLevel ) ;
84
- left = lastLeftAndRightBoxes [ 0 ] != null ? lastLeftAndRightBoxes [ 0 ] . GetRight ( ) : float . MinValue ;
84
+ left = lastLeftAndRightBoxes [ 0 ] != null ? lastLeftAndRightBoxes [ 0 ] . GetRight ( ) : float . Epsilon ;
85
85
right = lastLeftAndRightBoxes [ 1 ] != null ? lastLeftAndRightBoxes [ 1 ] . GetLeft ( ) : float . MaxValue ;
86
86
if ( left > right || left > layoutBox . GetRight ( ) || right < layoutBox . GetLeft ( ) ) {
87
87
left = layoutBox . GetLeft ( ) ;
You can’t perform that action at this time.
0 commit comments