From 5f1725006faaa74116aecfa73068b331331541ce Mon Sep 17 00:00:00 2001 From: vinayan Date: Tue, 18 Jun 2013 07:50:42 +0530 Subject: [PATCH] fix topology error markers --- src/plugins/topology/checkDock.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/topology/checkDock.cpp b/src/plugins/topology/checkDock.cpp index 0dbda6da7a9..e0f5a4c3381 100644 --- a/src/plugins/topology/checkDock.cpp +++ b/src/plugins/topology/checkDock.cpp @@ -149,6 +149,15 @@ void checkDock::deleteErrors() mErrorList.clear(); mErrorListModel->resetModel(); + + QList::const_iterator rit; + + for ( rit = mRbErrorMarkers.begin(); rit != mRbErrorMarkers.end(); ++rit ) + { + QgsRubberBand* rb = *rit; + rb->reset(); + delete rb; + } } void checkDock::parseErrorListByLayer( QString layerId )