mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
LibPDF: Fix unfortunate typo in CalRGBColorSpace::create()
We always ignored the /Matrix key in /CalRGB dicts.
This commit is contained in:
parent
d24289eef4
commit
1fcf0142d2
Notes:
sideshowbarker
2024-07-16 18:03:21 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/1fcf0142d2 Pull-request: https://github.com/SerenityOS/serenity/pull/21726 Reviewed-by: https://github.com/mattco98 ✅ Reviewed-by: https://github.com/trflynn89
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ PDFErrorOr<NonnullRefPtr<CalRGBColorSpace>> CalRGBColorSpace::create(Document* d
|
|||
|
||||
if (dict->contains(CommonNames::Matrix)) {
|
||||
auto matrix_array = TRY(dict->get_array(document, CommonNames::Matrix));
|
||||
if (matrix_array->size() == 3) {
|
||||
if (matrix_array->size() == 9) {
|
||||
color_space->m_matrix[0] = matrix_array->at(0).to_float();
|
||||
color_space->m_matrix[1] = matrix_array->at(1).to_float();
|
||||
color_space->m_matrix[2] = matrix_array->at(2).to_float();
|
||||
|
|
Loading…
Reference in a new issue