summaryrefslogtreecommitdiff
path: root/LibGUI/GTextEditor.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-24 22:46:27 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-24 22:46:27 +0200
commit5c240af3f779edfef32547bd295a0237deff9ae8 (patch)
treee3641ce9fac1a180caa19b4ac3961d55667006fb /LibGUI/GTextEditor.h
parent62f0aae4ca4e1de4d7b3cb26ac646a74198d3989 (diff)
downloadserenity-5c240af3f779edfef32547bd295a0237deff9ae8.zip
GTextEditor: Fix line_content_rect() behavior with custom alignments.
Diffstat (limited to 'LibGUI/GTextEditor.h')
-rw-r--r--LibGUI/GTextEditor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/LibGUI/GTextEditor.h b/LibGUI/GTextEditor.h
index 649d0ac3c9..6776fe5272 100644
--- a/LibGUI/GTextEditor.h
+++ b/LibGUI/GTextEditor.h
@@ -90,6 +90,7 @@ public:
int line_height() const { return font().glyph_height() + m_line_spacing; }
GTextPosition cursor() const { return m_cursor; }
GTextRange normalized_selection() const { return m_selection.normalized(); }
+ // FIXME: This should take glyph spacing into account, no?
int glyph_width() const { return font().glyph_width('x'); }
bool write_to_file(const String& path);