Mercurial > hg > svgui
changeset 838:b350de0ec8f7
Use fixed-order when exporting layers to a session
author | Chris Cannam |
---|---|
date | Tue, 02 Sep 2014 16:10:10 +0100 |
parents | 6c4cab21e387 |
children | 757b7baac614 |
files | view/View.cpp |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 + "</view>\n";