(svn r16463) -Cleanup: Code style fixes.

This commit is contained in:
alberth
2009-05-30 11:01:05 +00:00
parent 1448160e1e
commit 5eecf3e5cb
3 changed files with 7 additions and 7 deletions

View File

@@ -272,7 +272,7 @@ public:
{
if (widget_index < this->widget_count) {
/* Repaint the widget that loss focus. A focused edit box may else leave the caret left on the screen */
if (this->focused_widget && this->focused_widget - this->widget != widget_index) {
if (this->focused_widget != NULL && this->focused_widget - this->widget != widget_index) {
this->InvalidateWidget(this->focused_widget - this->widget);
}
this->focused_widget = &this->widget[widget_index];