Skip to content

Commit

Permalink
Fix code that breaks unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chchwy committed Jan 7, 2020
1 parent 3469949 commit 2e22cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/src/mainwindow2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ bool MainWindow2::newObject()
Object* object = nullptr;
object = new Object();
object->init();
object->createDefaultLayers();
mEditor->setObject(object);
return true;
}
Expand All @@ -1038,6 +1039,7 @@ bool MainWindow2::newObjectFromPresets(int presetIndex)
{
object = new Object();
object->init();
object->createDefaultLayers();
}
mEditor->setObject(object);
return true;
Expand Down
2 changes: 0 additions & 2 deletions core_lib/src/structure/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ void Object::init()

// default palette
loadDefaultPalette();

createDefaultLayers();
}

QDomElement Object::saveXML(QDomDocument& doc)
Expand Down

0 comments on commit 2e22cb2

Please sign in to comment.