Skip to content

Commit

Permalink
Fix #8587, show/hide labels tool throws Qt warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Sep 9, 2013
1 parent c705034 commit 5f61dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolshowhidelabels.cpp
Expand Up @@ -173,10 +173,10 @@ void QgsMapToolShowHideLabels::showHideLabels( QMouseEvent * e )
labelChanged = true;
}
}
vlayer->endEditCommand();

if ( labelChanged )
{
vlayer->endEditCommand();
mCanvas->refresh();
}
else
Expand Down

0 comments on commit 5f61dd1

Please sign in to comment.