Mercurial > hg > svapp
diff framework/Document.cpp @ 212:fe83e6e68683
* Fix crash on document deletion (new session, or application exit) after loading session with alignments
author | Chris Cannam |
---|---|
date | Sun, 24 Oct 2010 22:09:42 +0200 |
parents | b5b4af911c98 |
children | 2c827ac7c8e7 67cea66bd588 |
line wrap: on
line diff
--- a/framework/Document.cpp Sun Oct 24 17:39:00 2010 +0200 +++ b/framework/Document.cpp Sun Oct 24 22:09:42 2010 +0200 @@ -31,6 +31,7 @@ #include <QTextStream> #include <QSettings> #include <iostream> +#include <typeinfo> // For alignment: #include "data/model/AggregateWaveModel.h" @@ -630,7 +631,8 @@ if (m_layers.find(layer) == m_layers.end()) { std::cerr << "Document::deleteLayer: Layer " - << layer << " does not exist, or has already been deleted " + << layer << " (" << typeid(layer).name() << + ") does not exist, or has already been deleted " << "(this may not be as serious as it sounds)" << std::endl; return; }