From afbe9cb01976b8e246ceebe299566700f3c55b0c Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 2 Nov 2010 12:22:43 +0100 Subject: add assertion for missing windowstyle --- lib/gui/ewindowstyle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gui/ewindowstyle.cpp b/lib/gui/ewindowstyle.cpp index 68a74e0c..0ecdc2a2 100644 --- a/lib/gui/ewindowstyle.cpp +++ b/lib/gui/ewindowstyle.cpp @@ -28,7 +28,9 @@ eWindowStyleManager::~eWindowStyleManager() void eWindowStyleManager::getStyle(int style_id, ePtr &style) { - style = m_current_style[style_id]; + std::map >::iterator it = m_current_style.find(style_id); + ASSERT(it != m_current_style.end()); + style = it->second; } void eWindowStyleManager::setStyle(int style_id, eWindowStyle *style) -- cgit v1.2.3 From c6bb1ba9c6759ea9b0f4f0f95a04b15d27ab9afb Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 2 Nov 2010 12:20:00 +0100 Subject: move windowstyle definitions for LCD/OLED and Color Oled Display to skin_default.xml --- data/skin.xml | 29 ----------------------------- data/skin_default.xml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/data/skin.xml b/data/skin.xml index 868fbc4b..b4b6cbcd 100755 --- a/data/skin.xml +++ b/data/skin.xml @@ -46,35 +46,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/data/skin_default.xml b/data/skin_default.xml index aabefec4..ea8541dc 100755 --- a/data/skin_default.xml +++ b/data/skin_default.xml @@ -1,4 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3