History is per viewport
authoramwaterhouse <Andrew Waterhouse>
Thu, 2 Nov 2006 15:11:55 +0000 (15:11 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 2 Nov 2006 15:11:55 +0000 (15:11 +0000)
src/jalview/gui/AlignViewport.java
src/jalview/gui/RedundancyPanel.java

index 7c3279e..0161517 100755 (executable)
@@ -109,6 +109,9 @@ public class AlignViewport
 
     boolean gatherViewsHere = false;
 
+    Stack historyList = new Stack();
+    Stack redoList = new Stack();
+
     /**
      * Creates a new AlignViewport object.
      *
@@ -231,6 +234,8 @@ public class AlignViewport
                 globalColourScheme.setConsensus(hconsensus);
             }
         }
+
+        wrapAlignment = jalview.bin.Cache.getDefault("WRAP_ALIGNMENT", false);
     }
 
 
@@ -1534,7 +1539,6 @@ public class AlignViewport
         resetAllColourSchemes();
 
         alignment.adjustSequenceAnnotations();
-
     }
 
 
index 28532d0..ec896d5 100755 (executable)
@@ -290,9 +290,9 @@ public class RedundancyPanel extends GSliderPanel implements Runnable
       CommandI command = (CommandI) historyList.pop();\r
       command.undoCommand();\r
 \r
-      if (af.historyList.contains(command))\r
+      if (ap.av.historyList.contains(command))\r
       {\r
-        af.historyList.remove(command);\r
+        ap.av.historyList.remove(command);\r
         af.updateEditMenuBar();\r
       }\r
 \r