Skip to content

Commit dd6ad7b

Browse files
committed
Add Math.round to get border width comes in float for issue 14203
1 parent 41dab8e commit dd6ad7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/annotation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ class AnnotationBorderStyle {
922922
this.width = 0; // This is consistent with the behaviour in Adobe Reader.
923923
return;
924924
}
925-
if (Number.isInteger(width)) {
925+
if (Number.isInteger(Math.round(width))) {
926926
if (width > 0) {
927927
const maxWidth = (rect[2] - rect[0]) / 2;
928928
const maxHeight = (rect[3] - rect[1]) / 2;

0 commit comments

Comments
 (0)