Permalink
Browse files

Fix for getting duplicate figures on zoom out.

  • Loading branch information...
Tom de Bruijn
Tom de Bruijn committed Jul 11, 2012
1 parent d95f155 commit 99c831be94bd16f6e8ff7f85124393f5260e3895
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/husacct/graphics/task/AnalysedController.java
@@ -132,7 +132,9 @@ public void moduleZoomOut() {
ArrayList<String> parentNames = new ArrayList<String>();
for (String path : currentPaths) {
AnalysedModuleDTO parentDTO = analyseService.getParentModuleForModule(path);
- parentNames.add(parentDTO.uniqueName);
+ if(!parentNames.contains(parentDTO.uniqueName)){
+ parentNames.add(parentDTO.uniqueName);
+ }
}
String combinedPath = createCombinedPathHelper(parentNames);
createState(combinedPath);

0 comments on commit 99c831b

Please sign in to comment.