From fe6b36507fd677ea70bff87975b17e83a423ec4b Mon Sep 17 00:00:00 2001 From: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> Date: Thu, 8 Jun 2023 07:46:06 -0400 Subject: [PATCH] FontEditor: Check complete mime type on paste_glyphs() --- Userland/Applications/FontEditor/MainWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/FontEditor/MainWidget.cpp b/Userland/Applications/FontEditor/MainWidget.cpp index 12eab5e95a..88555093e0 100644 --- a/Userland/Applications/FontEditor/MainWidget.cpp +++ b/Userland/Applications/FontEditor/MainWidget.cpp @@ -1045,7 +1045,7 @@ ErrorOr 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);