mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
FontEditor: Check complete mime type on paste_glyphs()
This commit is contained in:
parent
9b431bc2ab
commit
fe6b36507f
1 changed files with 1 additions and 1 deletions
|
@ -1045,7 +1045,7 @@ ErrorOr<void> MainWidget::cut_selected_glyphs()
|
|||
void MainWidget::paste_glyphs()
|
||||
{
|
||||
auto [data, mime_type, metadata] = GUI::Clipboard::the().fetch_data_and_type();
|
||||
if (!mime_type.starts_with("glyph/"sv))
|
||||
if (!mime_type.starts_with("glyph/x-fonteditor"sv))
|
||||
return;
|
||||
|
||||
auto glyph_count = metadata.get("count").value().to_uint().value_or(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue