mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +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
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…
Add table
Add a link
Reference in a new issue