mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-29 21:33:12 +00:00
Fix crash when a document cannot be loaded
This commit is contained in:
parent
9135461627
commit
e1a4a8b09f
@ -111,7 +111,7 @@ Document* load_document(Context* context, const char* filename)
|
||||
document = fop->document;
|
||||
fop_free(fop);
|
||||
|
||||
if (context)
|
||||
if (document && context)
|
||||
document->setContext(context);
|
||||
|
||||
return document;
|
||||
|
Loading…
x
Reference in New Issue
Block a user