<div dir="ltr">Thank you very much Martin for this quick fix, tested this morning and it works as expected now.<br><br>I have another question : after settings some labeling rules with pyqgis, the labels are not displaying but if I just enter the rule settings <span class="gmail-gt-baf-word-clickable">through</span> the gui and directly exit it without changing anything then the labels <span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">are displayed correctly</span></span>. Is there any register action needed for each rule that I forgot in my code ?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-03 22:34 GMT+01:00 Martin Dobias <span dir="ltr"><<a href="mailto:wonder.sk@gmail.com" target="_blank">wonder.sk@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dominique<br>
<span class=""><br>
On Sat, Feb 3, 2018 at 11:24 AM, Dominique Lyszczarz <<a href="mailto:domlysz@gmail.com">domlysz@gmail.com</a>> wrote:<br>
><br>
> Unfortunately I can't find how to iterate over existing rules, the<br>
> labeling() method available for vector layers return an object of<br>
> QgsAbstractVectorLayerLabeling class<br>
<br>
</span>That should be fixed on master now:<br>
<a href="https://github.com/qgis/QGIS/commit/4b365a8f47d96b35f7609859e580388927ae0606" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/<wbr>commit/<wbr>4b365a8f47d96b35f7609859e58038<wbr>8927ae0606</a><br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888">Martin<br>
</font></span></blockquote></div><br></div>