summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
authorRodrigo Tobar <rtobarc@gmail.com>2023-01-05 23:49:40 +0800
committerAndreas Kling <kling@serenityos.org>2023-01-06 18:06:41 +0100
commitf510b2b180729b1ef41d1a9cdf7e5a9e40755d41 (patch)
tree9905ebe1a4228452076ababbcaa87e59b4310781 /Userland/Libraries/LibGfx
parent2485c500a3589f4cead214598d0138d76dc5f454 (diff)
downloadserenity-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/LibGfx')
0 files changed, 0 insertions, 0 deletions