You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/07/09 20:09:05 UTC

[jira] [Resolved] (PDFBOX-2867) Correct use of Float.NaN

     [ https://issues.apache.org/jira/browse/PDFBOX-2867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-2867.
-------------------------------------
    Resolution: Fixed

> Correct use of Float.NaN
> ------------------------
>
>                 Key: PDFBOX-2867
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2867
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 1.8.9, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 1.8.10, 2.0.0
>
>
> replace
> {code}
> wordSpacing == Float.NaN
> {code}
> with
> {code}
> Float.isNaN(wordSpacing)
> {code}
> because {{wordSpacing == Float.NaN}} is always false.
> A test by Tim Allison showed 9 differences in TIKA (but "None of the differences were actual words. "), and no difference in a manual test with ExtractText.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org