From c0858958da417d40659d45adde43819e2f25cd3d Mon Sep 17 00:00:00 2001 From: skyjake Date: Sun, 30 Jun 2013 20:49:59 +0300 Subject: [PATCH] Fixed|Client|LineEditWidget: Assert failed when navigating history rapidly The editor's history navigation requires line-wrapped content. However, the wrapping was not being updated until the next frame was drawn. Thus, if one tried to navigate two steps during one frame, the wraps were not up to date when they were needed. Now the wraps are updated immediately if the editor widget is part of a widget tree. --- doomsday/client/src/ui/widgets/lineeditwidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doomsday/client/src/ui/widgets/lineeditwidget.cpp b/doomsday/client/src/ui/widgets/lineeditwidget.cpp index fb92bf395a..e387179c50 100644 --- a/doomsday/client/src/ui/widgets/lineeditwidget.cpp +++ b/doomsday/client/src/ui/widgets/lineeditwidget.cpp @@ -416,4 +416,9 @@ void LineEditWidget::cursorMoved() void LineEditWidget::contentChanged() { d->contentChanged(); + + if(hasRoot()) + { + updateLineWraps(WrapUnlessWrappedAlready); + } }