Mercurial > hg > svapp
diff framework/Document.cpp @ 61:215b8b1b0308
* Add Erase tool and mode
* Add icons for Normalize buttons in property boxes, and for Show Peaks
* Add support for velocity in notes -- not yet reflected in display or
editable in the note edit dialog, but they are imported from MIDI,
played, and exported
* Begin work on making pastes align pasted times (subtler than I thought)
author | Chris Cannam |
---|---|
date | Fri, 23 Nov 2007 16:48:23 +0000 |
parents | 621c2edd1693 |
children | b6605be1a2d1 |
line wrap: on
line diff
--- a/framework/Document.cpp Thu Nov 22 14:17:19 2007 +0000 +++ b/framework/Document.cpp Fri Nov 23 16:48:23 2007 +0000 @@ -157,6 +157,8 @@ Layer * Document::createEmptyLayer(LayerFactory::LayerType type) { + if (!m_mainModel) return 0; + Model *newModel = LayerFactory::getInstance()->createEmptyModel(type, m_mainModel); if (!newModel) return 0;