projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
27305d8
)
add assertion for missing windowstyle
author
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 2 Nov 2010 11:22:43 +0000
(12:22 +0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 2 Nov 2010 11:25:58 +0000
(12:25 +0100)
lib/gui/ewindowstyle.cpp
patch
|
blob
|
history
diff --git
a/lib/gui/ewindowstyle.cpp
b/lib/gui/ewindowstyle.cpp
index
68a74e0
..
0ecdc2a
100644
(file)
--- a/
lib/gui/ewindowstyle.cpp
+++ b/
lib/gui/ewindowstyle.cpp
@@
-28,7
+28,9
@@
eWindowStyleManager::~eWindowStyleManager()
void eWindowStyleManager::getStyle(int style_id, ePtr<eWindowStyle> &style)
{
void eWindowStyleManager::getStyle(int style_id, ePtr<eWindowStyle> &style)
{
- style = m_current_style[style_id];
+ std::map<int, ePtr<eWindowStyle> >::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)
}
void eWindowStyleManager::setStyle(int style_id, eWindowStyle *style)