# HG changeset patch # User Chris Cannam # Date 1253704783 0 # Node ID da514e36839a1ee9537f07fdb447653fa959260c # Parent 58b64dbb49c6177fdc2f8e15bb558371a4a4e2e3 * If, when a model is removed from a layer, it is found that the only remaining layers representing that model are ruler layers, then stop playing the model (probable fix to bug reported by Tim Crawford) diff -r 58b64dbb49c6 -r da514e36839a framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Mon Sep 21 12:46:20 2009 +0000 +++ b/framework/MainWindowBase.cpp Wed Sep 23 11:19:43 2009 +0000 @@ -2646,7 +2646,9 @@ if (!pane) continue; for (int j = 0; j < pane->getLayerCount(); ++j) { Layer *pl = pane->getLayer(j); - if (pl && (pl->getModel() == model)) { + if (pl && + !dynamic_cast(pl) && + (pl->getModel() == model)) { found = true; break; }