Skip to content

Commit

Permalink
Fixed|Client|LineEditWidget: Assert failed when navigating history ra…
Browse files Browse the repository at this point in the history
…pidly

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.
  • Loading branch information
skyjake committed Jun 30, 2013
1 parent 25ae18e commit c085895
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doomsday/client/src/ui/widgets/lineeditwidget.cpp
Expand Up @@ -416,4 +416,9 @@ void LineEditWidget::cursorMoved()
void LineEditWidget::contentChanged()
{
d->contentChanged();

if(hasRoot())
{
updateLineWraps(WrapUnlessWrappedAlready);
}
}

0 comments on commit c085895

Please sign in to comment.