summaryrefslogtreecommitdiff
path: root/plugingui/lineedit.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-05-16 19:26:42 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-05-16 19:26:42 +0200
commit919586f8d86ceed1f979967a453f4812fc10d80b (patch)
treef2cf0a54b778b64dccdbeb2ef0b90056bbd01211 /plugingui/lineedit.cc
parentbc7d41279222dbd07f8e6f02f067347d10c69f33 (diff)
parent1dcb87f400b36f773942562db901e134d14ef8ed (diff)
Merge branch 'master' of http://git.drumgizmo.org/drumgizmo
Diffstat (limited to 'plugingui/lineedit.cc')
-rw-r--r--plugingui/lineedit.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugingui/lineedit.cc b/plugingui/lineedit.cc
index 9308902..16c6dda 100644
--- a/plugingui/lineedit.cc
+++ b/plugingui/lineedit.cc
@@ -94,6 +94,7 @@ void GUI::LineEdit::buttonEvent(ButtonEvent *e)
break;
}
}
+ if(e->x >= (int)(font.textWidth(_text) + BORDER)) pos = _text.length();
repaintEvent(NULL);
}
}