Skip to content

Commit 5f61dd1

Browse files
committed
Fix #8587, show/hide labels tool throws Qt warning
1 parent c705034 commit 5f61dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsmaptoolshowhidelabels.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ void QgsMapToolShowHideLabels::showHideLabels( QMouseEvent * e )
173173
labelChanged = true;
174174
}
175175
}
176-
vlayer->endEditCommand();
177176

178177
if ( labelChanged )
179178
{
179+
vlayer->endEditCommand();
180180
mCanvas->refresh();
181181
}
182182
else

0 commit comments

Comments
 (0)