Bug report #9228
Cannot use layer order if non-geometric layers are used
|Affected QGIS version:||2.0.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17849|
If you have non-geometric layers and want to use the custom layer order, it is disabled every time your re-open the project.
This message appears in the log:
The problem comes from the fact that sometimes drawingOrder="-1" in the legend node for the non-geometric layers.
And then, in QgsLegend::verifyDrawingOrder, if a legend layer has drawingOrder < 0, it will reorder the layers according to the legend.