Bug report #9228

Cannot use layer order if non-geometric layers are used

Added by Denis Rouzaud over 10 years ago. Updated about 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Map Legend
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

Description

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.

History

#1 Updated by Denis Rouzaud over 10 years ago

The message is: Not fully defined drawing order set to legend order.

#2 Updated by Jürgen Fischer over 10 years ago

what is a "non-geometric" layer?

#3 Updated by Denis Rouzaud over 10 years ago

only data, a postgres layer without geometry column for instance

#4 Updated by Giovanni Manghi about 10 years ago

  • Priority changed from High to Normal

There is no crash or data corruption, so I'm lowering the priority.

#5 Updated by Denis Rouzaud about 9 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF