Finish the execution of the plugin in the right way now if a wrong layer is selected.
Authored by: wellgis 2014-10-28
Parent: [r566]
Child: [r568]