mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
FontEditor: Reset selected glyph on init
Fixes glyphs not updating when loading between fonts at the same index. Fixes GlyphEditor spinbox inadvertently modifying width of last selected index.
This commit is contained in:
parent
57c6264877
commit
ebf3ce7806
Notes:
sideshowbarker
2024-07-18 20:39:47 +09:00
Author: https://github.com/thankyouverycool
Commit: ebf3ce7806
Pull-request: https://github.com/SerenityOS/serenity/pull/6184
2 changed files with 5 additions and 3 deletions
|
@ -45,6 +45,7 @@ void GlyphMapWidget::initialize(Gfx::BitmapFont& mutable_font)
|
|||
return;
|
||||
m_font = mutable_font;
|
||||
m_glyph_count = mutable_font.glyph_count();
|
||||
m_selected_glyph = 0;
|
||||
vertical_scrollbar().set_step(font().glyph_height() + m_vertical_spacing);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue