Bugfix 6063

Fixing bug #6063 please see http://hub.qgis.org/issues/6063