1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:07:44 +00:00

FontEditor: Don't put invalid clicks on the undo stack

This commit is contained in:
thankyouverycool 2021-04-26 09:13:51 -04:00 committed by Andreas Kling
parent 8febfb169d
commit ed634a4582
2 changed files with 20 additions and 3 deletions

View file

@ -32,6 +32,7 @@ public:
void copy_glyph();
void paste_glyph();
void delete_glyph();
bool is_glyph_empty();
int preferred_width() const;
int preferred_height() const;
@ -64,4 +65,5 @@ private:
int m_scale { 10 };
u8 m_movable_bits[s_max_width * 3][s_max_height * 3] = {};
Mode m_mode { Paint };
bool m_is_clicking_valid_cell { false };
};