Thank you very much Martin for this quick fix, tested this morning and it works as expected now.
I have another question : after settings some labeling rules with pyqgis, the labels are not displaying but if I just enter the rule settings through the gui and directly exit it without changing anything then the labels are displayed correctly. Is there any register action needed for each rule that I forgot in my code ? 2018-02-03 22:34 GMT+01:00 Martin Dobias <[email protected]>: > Hi Dominique > > On Sat, Feb 3, 2018 at 11:24 AM, Dominique Lyszczarz <[email protected]> > wrote: > > > > Unfortunately I can't find how to iterate over existing rules, the > > labeling() method available for vector layers return an object of > > QgsAbstractVectorLayerLabeling class > > That should be fixed on master now: > https://github.com/qgis/QGIS/commit/4b365a8f47d96b35f7609859e58038 > 8927ae0606 > > Cheers > Martin >
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
