Fixing bug #7822

http://hub.qgis.org/issues/7822

Fixing the bug #7822