瀏覽代碼

FontEditor: Mark pasted glyphs as modified

Co-authored-by: thankyouverycool <66646555+thankyouverycool@users.noreply.github.com>
Sam Atkins 3 年之前
父節點
當前提交
ca0e32e59f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/Applications/FontEditor/MainWidget.cpp

+ 1 - 0
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]);
             : 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);
         memcpy(&rows[i * bytes_per_glyph], &data[i * bytes_per_copied_glyph], copyable_bytes_per_glyph);
         memset(&widths[i], copyable_width, sizeof(u8));
         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);
     m_glyph_map_widget->set_selection(selection.start() + range_bound_glyph_count - 1, -range_bound_glyph_count + 1);