Fix logic bug found by Coverity.
This commit is contained in:
parent
8502fd6877
commit
a89f6404b4
|
@ -87,10 +87,14 @@ static void existsOnLayer( LIBEVAL::CONTEXT* aCtx, void *self )
|
|||
if( !item )
|
||||
return;
|
||||
|
||||
if( !arg && aCtx->HasErrorCallback() )
|
||||
if( !arg )
|
||||
{
|
||||
if( aCtx->HasErrorCallback() )
|
||||
{
|
||||
aCtx->ReportError( wxString::Format( _( "Missing argument to '%s'" ),
|
||||
wxT( "existsOnLayer()" ) ) );
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue