workaround for bug in QGIS 2.8, see ticket #12631
Patch add from Alexander Lisovenko (thanks!) Ru...