Fix #8587, show/hide labels tool throws Qt warning

This commit is contained in:
Larry Shaffer 2013-09-09 11:47:32 -06:00
parent c705034977
commit 5f61dd12fe

View File

@ -173,10 +173,10 @@ void QgsMapToolShowHideLabels::showHideLabels( QMouseEvent * e )
labelChanged = true;
}
}
vlayer->endEditCommand();
if ( labelChanged )
{
vlayer->endEditCommand();
mCanvas->refresh();
}
else