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.

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to