JAL-2491 Unit test updates
[jalview.git] / src / jalview / viewmodel / ViewportRanges.java
index d77baf5..267b50e 100644 (file)
@@ -128,12 +128,12 @@ public class ViewportRanges extends ViewportProperties
       endRes = end;
     }
 
-    changeSupport.firePropertyChange("startres", oldstartres, start);
-    if (oldstartres == start)
+    changeSupport.firePropertyChange("startres", oldstartres, startRes);
+    if (oldstartres == startRes)
     {
       // event won't be fired if start positions are same
       // fire an event for the end positions in case they changed
-      changeSupport.firePropertyChange("endres", oldendres, end);
+      changeSupport.firePropertyChange("endres", oldendres, endRes);
     }
   }
 
@@ -202,12 +202,12 @@ public class ViewportRanges extends ViewportProperties
       endSeq = end;
     }
 
-    changeSupport.firePropertyChange("startseq", oldstartseq, start);
-    if (oldstartseq == start)
+    changeSupport.firePropertyChange("startseq", oldstartseq, startSeq);
+    if (oldstartseq == startSeq)
     {
       // event won't be fired if start positions are the same
       // fire in case the end positions changed
-      changeSupport.firePropertyChange("endseq", oldendseq, end);
+      changeSupport.firePropertyChange("endseq", oldendseq, endSeq);
     }
   }