Skip to content

Commit

Permalink
Bug fix: After a zoom the tools are not refreshed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorix committed Jul 17, 2013
1 parent 140bb9a commit 93725b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ On development

(open for suggestions)

[v0.6.1](https://github.com/jorix/OL-Ragbag/tree/v0.6.1)
--------------------------------------------------------

#### Bug fixes
* *Control/ModifyFeature-tools.js*
* After a zoom the tools are not refreshed (when a feature is selected)

[v0.6.0](https://github.com/jorix/OL-Ragbag/tree/v0.6.0)
--------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions lib/Ragbag/Control/ModifyFeature-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ OpenLayers.Control.ModifyFeature = OpenLayers.Class(OpenLayers.Control, {
};
this.layerListeners = {
'moveend': function(evt) {
if (this.vertex && evt.zoomChanged) {
if (OpenLayers.Util.indexOf(
if (this.feature && evt.zoomChanged) {
if (this.vertex && OpenLayers.Util.indexOf(
this.toolbar, this.vertex) !== -1) {
this.dragComplete();
} else {
Expand Down

0 comments on commit 93725b7

Please # to comment.