From 8d46c09ccf7b437403b52303b679e5027e6ae395 Mon Sep 17 00:00:00 2001 From: that Date: Thu, 26 Feb 2015 01:30:04 +0100 Subject: gui: kinetic scrolling for console - Rebase console on ScrollList - Add fastscroll bar to console - ScrollList now has a mode that ignores selections - Increase kinetic scrolling speed for lists showing many items Change-Id: I6298d717d2e403f3e85e2c633d53c4284a066012 --- gui/pages.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/pages.cpp') diff --git a/gui/pages.cpp b/gui/pages.cpp index 50c60a695..18ddf9c33 100644 --- a/gui/pages.cpp +++ b/gui/pages.cpp @@ -105,6 +105,9 @@ int ConvertStrToColor(std::string str, COLOR* color) // Helper APIs xml_node<>* FindNode(xml_node<>* parent, const char* nodename, int depth /* = 0 */) { + if (!parent) + return NULL; + xml_node<>* child = parent->first_node(nodename); if (child) return child; -- cgit v1.2.3