diff framework/Document.h @ 663:351b1302064e single-point

Make layer order in document also stable on file load/save
author Chris Cannam
date Tue, 02 Apr 2019 14:45:57 +0100
parents a2bf5e6c54ce
children ae7584dbd668
line wrap: on
line diff
--- a/framework/Document.h	Tue Apr 02 14:32:57 2019 +0100
+++ b/framework/Document.h	Tue Apr 02 14:45:57 2019 +0100
@@ -481,8 +481,8 @@
      * And these are the layers.  We also control the lifespans of
      * these (usually through the commands used to add and remove them).
      */
-    typedef std::set<Layer *> LayerSet;
-    LayerSet m_layers;
+    typedef std::vector<Layer *> LayerList;
+    LayerList m_layers;
 
     bool m_autoAlignment;
     Align *m_align;