- handler=(wxImageHandler*)node->GetData();
- if ( handler->CanRead(stream) )
- return handler->LoadFile(this, stream, true/*verbose*/, index);
+ handler = (wxImageHandler*)node->GetData();
+ if ( handler->CanRead(stream) &&
+ handler->LoadFile(this, stream, true/*verbose*/, index) )
+ {
+ return true;
+ }