Issue #205: Editor cannot create white, whitesmoke or transparent annotations

This commit is contained in:
Jakub Melka 2024-08-31 19:56:04 +02:00
parent bcf72318ea
commit 8907183591
2 changed files with 6 additions and 0 deletions

View File

@ -935,6 +935,11 @@ void PDFObjectEditorMappedColorAdapter::setValue(PDFObject object)
const PDFReal blue = qBound(0.0, colors[2], 1.0);
color = QColor::fromRgbF(red, green, blue);
}
else if (colors.size() == 1)
{
const PDFReal gray = qBound(0.0, colors[0], 1.0);
color = QColor::fromRgbF(gray, gray, gray);
}
int index = m_comboBox->findData(color);
if (index != -1)

View File

@ -1,6 +1,7 @@
CURRENT:
- Issue #207: Zoom to Cursor (Zoom Anchoring)
- Issue #206: Name of the executable / command
- Issue #205: Editor cannot create white, whitesmoke or transparent annotations
- Issue #185: Latest git fails to build in linux
V: 1.4.0.0 4.7.2024