[Qgis-developer] QgsMapToolZoom and virtual deactivate()
Golubev
golubev at nordcomp.ru
Wed Nov 21 03:07:58 PST 2012
Hi, list!
QgsMapToolZoom::deactivate() deletes internal rubber band without call
QgsMapTool::deactivate(). So, if you have button that associated with
this tool, map canvas didnt uncheck it when another map tool set.
I think it should be something like:
virtual void QgsMapToolZoom::deactivate()
{
delete mRubberBand;
mRubberBand = 0;
QgsMapTool::deactivate();
}
Correct me, if I`m wrong.
More information about the Qgis-developer
mailing list