From 5f61dd12feafe5d0a8634a819813fa5cc7cd5f4f Mon Sep 17 00:00:00 2001 From: Larry Shaffer Date: Mon, 9 Sep 2013 11:47:32 -0600 Subject: [PATCH] Fix #8587, show/hide labels tool throws Qt warning --- src/app/qgsmaptoolshowhidelabels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qgsmaptoolshowhidelabels.cpp b/src/app/qgsmaptoolshowhidelabels.cpp index 3676ecc5dc87..7130312faf81 100644 --- a/src/app/qgsmaptoolshowhidelabels.cpp +++ b/src/app/qgsmaptoolshowhidelabels.cpp @@ -173,10 +173,10 @@ void QgsMapToolShowHideLabels::showHideLabels( QMouseEvent * e ) labelChanged = true; } } - vlayer->endEditCommand(); if ( labelChanged ) { + vlayer->endEditCommand(); mCanvas->refresh(); } else