@ -341,21 +341,28 @@ public class GUISimulator extends GUIPlugin implements MouseListener, ListSelect
boolean match = true ;
boolean match = true ;
int i , n ;
int i , n ;
n = defaultInitialState . getNumValues ( ) ;
n = defaultInitialState . getNumValues ( ) ;
for ( i = 0 ; i < n ; i + + )
if ( lastInitialState . getNumValues ( ) ! = defaultInitialState . getNumValues ( ) )
{
{
if ( ! lastInitialState . contains ( defaultInitialState . getName ( i ) ) )
{
match = false ;
break ;
}
else
match = false ;
}
else
{
for ( i = 0 ; i < n ; i + + )
{
{
int index = lastInitialState . getIndexOf ( defaultInitialState . getName ( i ) ) ;
if ( lastInitialState . getType ( index ) ! = defaultInitialState . getType ( i ) )
if ( ! lastInitialState . contains ( defaultInitialState . getName ( i ) ) )
{
{
match = false ;
match = false ;
break ;
break ;
}
}
else
{
int index = lastInitialState . getIndexOf ( defaultInitialState . getName ( i ) ) ;
if ( lastInitialState . getType ( index ) ! = defaultInitialState . getType ( i ) )
{
match = false ;
break ;
}
}
}
}
}
}
if ( ! match ) / / if there ' s a problem , just use the default
if ( ! match ) / / if there ' s a problem , just use the default