JAL-4386 fix viewstyle autotests
authorJim Procter <jprocter@dundee.ac.uk>
Thu, 25 Jul 2024 16:00:53 +0000 (17:00 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Thu, 25 Jul 2024 16:00:53 +0000 (17:00 +0100)
src/jalview/viewmodel/styles/ViewStyle.java

index 0726517..c9a1ad3 100644 (file)
@@ -232,6 +232,7 @@ public class ViewStyle implements ViewStyleI
     setWrapAlignment(vs.getWrapAlignment());
     setWrappedWidth(vs.getWrappedWidth());
     setSecondaryStructureSources(vs.getSecondaryStructureSources());
+    setShowStructureProvider(vs.isShowStructureProvider());
     // ViewStyle.configureFrom(this, viewStyle);
   }
 
@@ -297,7 +298,8 @@ public class ViewStyle implements ViewStyleI
             && isUpperCasebold() == vs.isUpperCasebold()
             && getWrapAlignment() == vs.getWrapAlignment()
             && getWrappedWidth() == vs.getWrappedWidth()
-            && getSecondaryStructureSources() == vs.getSecondaryStructureSources());
+            && getSecondaryStructureSources() == vs.getSecondaryStructureSources()
+            && isShowStructureProvider() == vs.isShowStructureProvider());
     /*
      * and compare non-primitive types; syntax below will match null with null
      * values