JAL-244 Allow wrap manual adjustments to be smaller than the actual id widths.
[jalview.git] / src / jalview / gui / IdwidthAdjuster.java
index eef5bfb..0ebdfa1 100755 (executable)
@@ -46,8 +46,6 @@ public class IdwidthAdjuster extends JPanel
 
   AlignmentPanel ap;
 
-  private boolean manuallyAdjusted = false;
-
   /**
    * Creates a new IdwidthAdjuster object.
    * 
@@ -151,7 +149,7 @@ public class IdwidthAdjuster extends JPanel
     ap.validateAnnotationDimensions(false);
     ap.paintAlignment(true, false);
 
-    manuallyAdjusted = true;
+    ap.getIdPanel().getIdCanvas().setManuallyAdjusted(true);
   }
 
   public void setWidth(int newWidth)
@@ -167,7 +165,7 @@ public class IdwidthAdjuster extends JPanel
 
   public boolean manuallyAdjusted()
   {
-    return manuallyAdjusted;
+    return ap.getIdPanel().getIdCanvas().manuallyAdjusted();
   }
 
   @Override