diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-10-22 15:07:20 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2014-10-22 15:07:20 +0200 |
commit | 5ee9eea8553e1757ae6a1cdaf294dd69ff05ae4d (patch) | |
tree | 6233cb70827ca2cd8c371c47d2addb20c3fad7fd /plugingui/textedit.cc | |
parent | 327eca0ff84f7487d3f29eb612e79209001b3ef5 (diff) |
Added additional border on textedit.
Diffstat (limited to 'plugingui/textedit.cc')
-rw-r--r-- | plugingui/textedit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/textedit.cc b/plugingui/textedit.cc index c0b4185..43be7aa 100644 --- a/plugingui/textedit.cc +++ b/plugingui/textedit.cc @@ -139,7 +139,7 @@ void GUI::TextEdit::repaintEvent(GUI::RepaintEvent *e) for(size_t i = 0; i < line.length(); i++) { size_t linewidth = font.textWidth(line.substr(0, i)); - if(linewidth >= width() - BORDER - 4 + 3) { + if(linewidth >= width() - BORDER - 4 + 3 - 10) { p.drawText(BORDER - 4 + 3, ypos, font, line.substr(0, i)); ypos += font.textHeight(); line = line.substr(i); |