Index: trunk/src/gui/gui_style.cc
===================================================================
--- trunk/src/gui/gui_style.cc	(revision 104)
+++ trunk/src/gui/gui_style.cc	(revision 114)
@@ -74,5 +74,5 @@
 	// check id
 	lua_getfield( m_lua, -1, cid );
-	if ( !lua_istable( m_lua, -1 ) )
+	if ( lua_istable( m_lua, -1 ) )
 	{
 		lua_getfield( m_lua, -1, centry );
@@ -83,5 +83,5 @@
 	// check class
 	lua_getfield( m_lua, -1, cclass );
-	if ( !lua_istable( m_lua, -1 ) )
+	if ( lua_istable( m_lua, -1 ) )
 	{
 		lua_getfield( m_lua, -1, centry );
@@ -91,5 +91,5 @@
 
 	// check entry
-	lua_getfield( m_lua, -1, cclass );
+	lua_getfield( m_lua, -1, centry );
 	if ( lua_type( m_lua, -1 ) == type ) return true;
 	return false;
