diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2016-03-20 22:25:05 +0100 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2016-03-20 22:25:05 +0100 |
commit | 4871ba69d6b0e2338f07b9bc8077f8899d7d8842 (patch) | |
tree | 7faca1608386e90b719ef3df1c12a3cde4cd1036 | |
parent | 357abaaf940f0ba2319952c6d7f5c11575882490 (diff) |
Fixed backspace not working in linedit. Fixed by readding code lost at refactoring 'a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24.'
-rw-r--r-- | plugingui/lineedit.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugingui/lineedit.cc b/plugingui/lineedit.cc index 25eeb4b..cf77a3d 100644 --- a/plugingui/lineedit.cc +++ b/plugingui/lineedit.cc @@ -216,7 +216,6 @@ void LineEdit::repaintEvent(RepaintEvent *repaintEvent) Painter p(*this); p.clear(); - int w = width(); int h = height(); if((w == 0) || (h == 0)) @@ -243,6 +242,8 @@ void LineEdit::repaintEvent(RepaintEvent *repaintEvent) break; case Noop: + visibleText = _text; + offsetPos = 0; break; } |