Hello Qgis-developers!<br><br>We reported a bug and provided a patch earlier today. Seems to work. <a href="https://trac.osgeo.org/qgis/ticket/2492">https://trac.osgeo.org/qgis/ticket/2492</a><br><br>We have not fixed the layer ordering problem he mentioned, but it is is the same bug as was reported here: <a href="http://forum.qgis.org/viewtopic.php?f=4&amp;t=4786&amp;p=8443">http://forum.qgis.org/viewtopic.php?f=4&amp;t=4786&amp;p=8443</a><br>

<br>The layer ordering problem should probably be fixed in the same manner. Not sure if it&#39;s good to have these methods as public either.<br><br>Best regards,<br><br>Michael Max and Audun Ellertsen<br><br>Advanced Imaging AS<br>