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 )
|
if( !item )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( !arg && aCtx->HasErrorCallback() )
|
if( !arg )
|
||||||
{
|
{
|
||||||
aCtx->ReportError( wxString::Format( _( "Missing argument to '%s'" ),
|
if( aCtx->HasErrorCallback() )
|
||||||
wxT( "existsOnLayer()" ) ) );
|
{
|
||||||
|
aCtx->ReportError( wxString::Format( _( "Missing argument to '%s'" ),
|
||||||
|
wxT( "existsOnLayer()" ) ) );
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue