diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-08-03 12:26:18 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-08-14 13:59:19 +0100 |
commit | ca0e32e59fcf67a662e5d3a994d44cd7c941624a (patch) | |
tree | a4982552fb3180e8c8ffdb79c4319f06c0c6e9e5 /Userland/Applications/FontEditor | |
parent | 5b7168b247a8c39e15c290483d9b1475e3eb2114 (diff) | |
download | serenity-ca0e32e59fcf67a662e5d3a994d44cd7c941624a.zip |
FontEditor: Mark pasted glyphs as modified
Co-authored-by: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com>
Diffstat (limited to 'Userland/Applications/FontEditor')
-rw-r--r-- | Userland/Applications/FontEditor/MainWidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/FontEditor/MainWidget.cpp b/Userland/Applications/FontEditor/MainWidget.cpp index 5855b28424..c7a41e4468 100644 --- a/Userland/Applications/FontEditor/MainWidget.cpp +++ b/Userland/Applications/FontEditor/MainWidget.cpp @@ -960,6 +960,7 @@ void MainWidget::paste_glyphs() : min(edited_font().max_glyph_width(), data[bytes_per_copied_glyph * glyph_count + i]); memcpy(&rows[i * bytes_per_glyph], &data[i * bytes_per_copied_glyph], copyable_bytes_per_glyph); memset(&widths[i], copyable_width, sizeof(u8)); + m_glyph_map_widget->set_glyph_modified(selection.start() + i, true); } m_glyph_map_widget->set_selection(selection.start() + range_bound_glyph_count - 1, -range_bound_glyph_count + 1); |