//For sequence removal and addition, we need to fire\r
//the property change event FROM the viewport where the\r
//original alignment was altered\r
+ AlignmentI al = null;\r
if (command instanceof EditCommand)\r
{\r
EditCommand editCommand = (EditCommand) command;\r
- AlignmentI al = editCommand.getAlignment();\r
+ al = editCommand.getAlignment();\r
Vector comps = (Vector) PaintRefresher.components\r
.get(viewport.getSequenceSetId());\r
for (int i = 0; i < comps.size(); i++)\r
}\r
}\r
}\r
- if (originalSource == null)\r
- {\r
- //The original view is closed, we must validate\r
- //the current view against the closed view first\r
- if (al != null)\r
- PaintRefresher.validateSequences(al, viewport.alignment);\r
- originalSource = viewport;\r
- }\r
+ }\r
\r
+ if (originalSource == null)\r
+ {\r
+ //The original view is closed, we must validate\r
+ //the current view against the closed view first\r
+ if (al != null)\r
+ PaintRefresher.validateSequences(al, viewport.alignment);\r
+\r
+ originalSource = viewport;\r
}\r
\r
+\r
return originalSource;\r
}\r
\r