ref #8260 Fix string comparison
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 18 Jul 2019 08:00:39 +0000 (10:00 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 18 Jul 2019 08:00:39 +0000 (10:00 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/StoreUtil.java

index 439c1b3156f3d54a963679eeeae2966d4dc46e52..08a86aa30d1bec14f04626f55ad181ce4b9d0890 100644 (file)
@@ -221,7 +221,7 @@ public class StoreUtil extends AbstractUtility {
         int style = ExpandableComposite.TWISTIE;
         String prefKey = getPrefKey(clazz, input);
         if(PreferencesUtil.contains(prefKey)){
-            style = PreferencesUtil.getStringValue(prefKey)==CdmSectionPart.EXPANDED?style |= ExpandableComposite.EXPANDED:style;
+            style = PreferencesUtil.getStringValue(prefKey).equals(CdmSectionPart.EXPANDED)?style |= ExpandableComposite.EXPANDED:style;
         }
         else{
             style = initiallyExpanded?style |= ExpandableComposite.EXPANDED:style;