summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-01-10 17:33:56 +0000
committerAndreas Kling <kling@serenityos.org>2022-01-16 11:17:03 +0100
commit1d79e8cb0f3a27204921c5fe0ac022ec9d76b43f (patch)
tree1a5269e95ae8a554fa338dac05817e910d621aab /Userland
parent70a79ea70c4476e41aa314840c07e3e672309a59 (diff)
downloadserenity-1d79e8cb0f3a27204921c5fe0ac022ec9d76b43f.zip
LibGUI: Preserve glyph selection when changing font
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGUI/GlyphMapWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp
index 259100be82..8a4fabdbd0 100644
--- a/Userland/Libraries/LibGUI/GlyphMapWidget.cpp
+++ b/Userland/Libraries/LibGUI/GlyphMapWidget.cpp
@@ -52,6 +52,7 @@ GlyphMapWidget::GlyphMapWidget()
set_focus_policy(FocusPolicy::StrongFocus);
horizontal_scrollbar().set_visible(false);
did_change_font();
+ set_active_glyph('A');
}
GlyphMapWidget::~GlyphMapWidget()
@@ -236,7 +237,6 @@ void GlyphMapWidget::did_change_font()
{
recalculate_content_size();
vertical_scrollbar().set_step(font().glyph_height() + m_vertical_spacing);
- set_active_glyph('A');
}
void GlyphMapWidget::scroll_to_glyph(int glyph)