From 5eecf3e5cb6da881ca4095561d19dfc4364d2823 Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 30 May 2009 11:01:05 +0000 Subject: (svn r16463) -Cleanup: Code style fixes. --- src/window_gui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 6f30a49a3..4de82d9db 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -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]; -- cgit v1.2.3-54-g00ecf