diff options
author | Rodrigo Tobar <rtobarc@gmail.com> | 2023-01-05 23:49:40 +0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-06 18:06:41 +0100 |
commit | f510b2b180729b1ef41d1a9cdf7e5a9e40755d41 (patch) | |
tree | 9905ebe1a4228452076ababbcaa87e59b4310781 /Userland/Libraries/LibC/pthread_integration.cpp | |
parent | 2485c500a3589f4cead214598d0138d76dc5f454 (diff) | |
download | serenity-f510b2b180729b1ef41d1a9cdf7e5a9e40755d41.zip |
LibPDF: Support null destination parameters
Destination arrays contain a page number, a mode name, and parameters
specific to that mode. In many cases these parameters can be set to
"null", which our code wasn't taking into consideration.
This commit parses these parameters taking into account whether they are
null or actual numbers, and stores them as Optional<float> instead of
plain floats. The parameters are not yet used anywhere else other than
when formatting a Destination object, so the change is fairly small.
Diffstat (limited to 'Userland/Libraries/LibC/pthread_integration.cpp')
0 files changed, 0 insertions, 0 deletions