# HG changeset patch # User Chris Cannam # Date 1409670610 -3600 # Node ID b350de0ec8f7705ea5e8f5cd214b0b6faa09da3c # Parent 6c4cab21e387f23263be2171d072bdd4c102b313 Use fixed-order when exporting layers to a session diff -r 6c4cab21e387 -r b350de0ec8f7 view/View.cpp --- a/view/View.cpp Tue Sep 02 15:25:27 2014 +0100 +++ b/view/View.cpp Tue Sep 02 16:10:10 2014 +0100 @@ -2507,11 +2507,11 @@ "ignore") .arg(extraAttributes); - for (int i = 0; i < (int)m_layerStack.size(); ++i) { - bool visible = !m_layerStack[i]->isLayerDormant(this); - m_layerStack[i]->toBriefXml(stream, indent + " ", - QString("visible=\"%1\"") - .arg(visible ? "true" : "false")); + for (int i = 0; i < (int)m_fixedOrderLayers.size(); ++i) { + bool visible = !m_fixedOrderLayers[i]->isLayerDormant(this); + m_fixedOrderLayers[i]->toBriefXml(stream, indent + " ", + QString("visible=\"%1\"") + .arg(visible ? "true" : "false")); } stream << indent + "\n";