[okular] [Bug 474889] New: Form field misuse leads to 'NaN' which won't disappear

Oliver Sander bugzilla_noreply at kde.org
Tue Sep 26 09:42:42 BST 2023


https://bugs.kde.org/show_bug.cgi?id=474889

            Bug ID: 474889
           Summary: Form field misuse leads to 'NaN' which won't disappear
    Classification: Applications
           Product: okular
           Version: 23.08.1
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: PDF backend
          Assignee: okular-devel at kde.org
          Reporter: oliver.sander at tu-dresden.de
  Target Milestone: ---

Created attachment 161880
  --> https://bugs.kde.org/attachment.cgi?id=161880&action=edit
The problematic document

I have a pdf document with a form field that should (I guess) only accept
numbers.  By deliberate entering a non-digit I can make it show NaN. 
Afterwards, it is not possible to remove this NaN again.

STEPS TO REPRODUCE
1. Open the attached document; click on 'show forms'
2. Click on the top left square (below "70 Liter")
3. Enter the letter X
4. Click outside of that square --> the X changes to NaN
5. Click into the square again --> the NaN changes back to X
6. Replace the X by a 2
7. Click on "hide forms"

OBSERVED RESULT

Instead of the number "2" the "NaN" is shown again.

EXPECTED RESULT

I am not quite sure what to expect.  Should I be prevented from entering
non-digits in the first place?  At the very least I would expect to see a "2"
at the end of the seven steps, not NaN.

SOFTWARE/OS VERSIONS
Betriebssystem: Debian GNU/Linux 12
KDE-Plasma-Version: 5.27.5
KDE-Frameworks-Version: 5.103.0
Qt-Version: 5.15.8

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list