Commit fix for #726 from andreas, with proper tests.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-06-20 23:53:51 +00:00
parent afa2270c83
commit 3cd58c5121
3 changed files with 43 additions and 2 deletions

View File

@@ -116,7 +116,9 @@ OpenLayers.Control.Panel.prototype =
if (this.controls[i] == control) {
control.activate();
} else {
this.controls[i].deactivate();
if (this.controls[i].type != OpenLayers.Control.TYPE_TOGGLE) {
this.controls[i].deactivate();
}
}
}
this.redraw();