1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

ClipboardHistory: Properly display bitmap depth

This commit is contained in:
Ben Wiederhake 2021-11-20 15:57:08 +01:00 committed by Linus Groh
parent f22c0ffe0c
commit d6c686e8bf

View file

@ -77,7 +77,7 @@ GUI::Variant ClipboardHistoryModel::data(const GUI::ModelIndex& index, GUI::Mode
builder.append('x');
builder.append(data_and_type.metadata.get("height").value_or("?"));
builder.append('x');
builder.append(bpp_for_format_resilient(data_and_type.metadata.get("height").value_or("0")));
builder.append(bpp_for_format_resilient(data_and_type.metadata.get("format").value_or("0")));
builder.append(" bitmap");
builder.append("]");
return builder.to_string();