Mercurial > hg > sonic-visualiser
diff document/SVFileReader.h @ 173:102317ae3970
* Better abbreviation modes for layer names in pane (and input model combo
of plugin parameter dialog)
* Avoid crash when loading SV file containing model derived from nonexistent
model (shouldn't happen of course, but see bug #1771769)
* Remember last-used input model in plugin parameter dialog
* Don't override a layer colour loaded from a session file with the generated
default colour when attaching it to a view
author | Chris Cannam |
---|---|
date | Fri, 10 Aug 2007 16:36:50 +0000 |
parents | f6ce5febc07f |
children |
line wrap: on
line diff
--- a/document/SVFileReader.h Thu Aug 09 14:40:03 2007 +0000 +++ b/document/SVFileReader.h Fri Aug 10 16:36:50 2007 +0000 @@ -199,6 +199,10 @@ bool readMeasurement(const QXmlAttributes &); void addUnaddedModels(); + bool haveModel(int id) { + return (m_models.find(id) != m_models.end()) && m_models[id]; + } + Document *m_document; SVFileReaderPaneCallback &m_paneCallback; QString m_location;