Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Choose new CategorySelector when going from line to area

  • Loading branch information...
commit 9f0517128b453e6a58ac0aa18e038ed239432edd 1 parent 843a803
@systemed systemed authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 net/systemeD/potlatch2/TagViewer.mxml
View
8 net/systemeD/potlatch2/TagViewer.mxml
@@ -236,7 +236,8 @@
private var connection:Connection;
private var currentCategorySelector:CategorySelector;
private var categorySelectors:Object = {}; // hash of categorySelectors for each limitType
- private var categorySelectorEntity:Entity; // entity used to draw the categorySelector
+ private var categorySelectorEntity:Entity; // entity used to draw the most recent categorySelector
+ private var categorySelectorLimitType:String; // limit type used to draw the most recent categorySelector
private var feature:Feature = null;
private var rowData:Object; // relation membership reference, needed so it's accessible from relation actions menu
@@ -315,12 +316,15 @@
var oldEntity:Entity = categorySelectorEntity;
feature = selectedEntity == null ? null : mapFeatures.findMatchingFeature(selectedEntity);
- if (oldFeature==feature && categorySelectorEntity==selectedEntity) {
+ if (oldFeature==feature &&
+ categorySelectorEntity==selectedEntity &&
+ categorySelectorLimitType==limitType(selectedEntity)) {
updateCategoryImageAndText(selectedEntity,feature);
return;
}
categorySelectorEntity=selectedEntity;
+ categorySelectorLimitType=limitType(selectedEntity);
if ( oldFeature != null ) { oldFeature.removeEventListener("imageChanged", featureImageChanged); }
if ( feature != null ) { feature.addEventListener("imageChanged", featureImageChanged); }
setCategorySelector(selectedEntity, feature);
Please sign in to comment.
Something went wrong with that request. Please try again.