Merge pull request #41 from stevage/pedestrian-crossings
[potlatch2.git] / net / systemeD / potlatch2 / panels / BackgroundMergeFieldComponent.as
index 08a0ada5fc02bf75a747079163e749fce2533b6b..39d226d31d02785aa0994f90e2cc1d8c881d6623 100644 (file)
@@ -11,8 +11,12 @@ package net.systemeD.potlatch2.panels {
         if(value != null)
         {
             super.data = value;
-            textField.background = true;
-            textField.backgroundColor = BackgroundMergePanel(listData.owner.parent).getColorFor(listData.rowIndex);
+            if (listData.label != ' ') { // yes, a space. No, neither null nor empty string. I hate you, adobe
+                textField.background = true;
+                textField.backgroundColor = BackgroundMergePanel(listData.owner.parent).getColorFor(listData.rowIndex);
+            } else {
+                textField.background = false;
+            }
         }
      }
   }