Fix #4189

Please see http://hub.qgis.org/issues/4189