mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Fix bug in import sprite sheet
The editor must be released before we destroy the document. (The document destroys all its views now.)
This commit is contained in:
parent
b45dcf7d0d
commit
eba1508473
@ -296,6 +296,8 @@ private:
|
||||
// If the user already have selected a file, we have to destroy
|
||||
// that file in order to select the new one.
|
||||
if (oldDocument && m_fileOpened) {
|
||||
releaseEditor();
|
||||
|
||||
DocumentDestroyer destroyer(m_context, oldDocument);
|
||||
destroyer.destroyDocument();
|
||||
}
|
||||
@ -305,7 +307,7 @@ private:
|
||||
|
||||
void captureEditor()
|
||||
{
|
||||
releaseEditor();
|
||||
ASSERT(m_editor == NULL);
|
||||
|
||||
if (m_document && !m_editor) {
|
||||
m_rect = getRectFromEntries();
|
||||
|
Loading…
x
Reference in New Issue
Block a user