<div dir="ltr">Do you mean your loop is exited when you call updateFeature?<div><br></div><div style>Can you post your code.</div><div style><br></div><div style>- Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Mar 22, 2013 at 10:54 PM, Denis Rouzaud <span dir="ltr"><<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am looping over features of a layer using new API (QgsFeatureRequest).<br>
If I modify a feature and do: layer.updateFeature(f), my loop is broken.<br>
Is this a normal behavior?<br>
<br>
What should I do if I want to modify features during the loop?<br>
<br>
Thanks<br>
<br>
Denis<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div><br></div>