Skip to content

Commit

Permalink
PDFBOX-5636: optimize, as suggested by Timo Boehme
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1911330 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jul 28, 2023
1 parent 74c5ac9 commit 6570b03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public PDLineDashPattern(COSArray array, int phase)
sum2 *= 2;
if (sum2 > 0)
{
phase += (Math.floor(-phase / sum2) + 1) * sum2;
phase += (-phase < sum2) ? sum2 : (Math.floor(-phase / sum2) + 1) * sum2;
}
else
{
Expand Down

0 comments on commit 6570b03

Please sign in to comment.