Skip to content

Commit 40b5041

Browse files
committed
Update autoported files
a1c79d4b81470a838f4c8e2d1bbc5815a7e866fe
1 parent fdf9e82 commit 40b5041

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

itext.tests/itext.svg.tests/itext/svg/utils/SvgCssUtilsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public virtual void ConvertLongerFloatToStringTest() {
167167
[NUnit.Framework.Test]
168168
public virtual void ConvertFloatMinimumToPdfTest() {
169169
float expected = 1.4E-45f;
170-
float actual = SvgCssUtils.ConvertPtsToPx(float.MinValue);
170+
float actual = SvgCssUtils.ConvertPtsToPx(float.Epsilon);
171171
NUnit.Framework.Assert.AreEqual(expected, actual, 0f);
172172
}
173173
}

itext/itext.layout/itext/layout/renderer/FloatingHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ internal static float AdjustLayoutBoxAccordingToFloats(IList<Rectangle> floatRen
8181
return topShift;
8282
}
8383
lastLeftAndRightBoxes = FindLastLeftAndRightBoxes(layoutBox, boxesAtYLevel);
84-
left = lastLeftAndRightBoxes[0] != null ? lastLeftAndRightBoxes[0].GetRight() : float.MinValue;
84+
left = lastLeftAndRightBoxes[0] != null ? lastLeftAndRightBoxes[0].GetRight() : float.Epsilon;
8585
right = lastLeftAndRightBoxes[1] != null ? lastLeftAndRightBoxes[1].GetLeft() : float.MaxValue;
8686
if (left > right || left > layoutBox.GetRight() || right < layoutBox.GetLeft()) {
8787
left = layoutBox.GetLeft();

0 commit comments

Comments
 (0)