Recalculate lengths when extending / shortening ways - allows names to update position
[potlatch2.git] / potlatch2.mxml
index b340a7e09ff17a93aa536a0cde4eb25eeb6d3a62..6ca393578ccf9e5f44b3ff4f703d84d7aa71b362 100755 (executable)
                     break;
                                }
                        }
-            if (!isSet && theController.stylesheets.length > 0) {
+            if (!isSet) {
+              if(theController.stylesheets.length > 0) {
                 var s:Object = theController.stylesheets[0];
                 setStylesheet(s['label'], s['data']);
-            } else {
+              } else {
                 //hit and hope. FIXME should this be an error state?
                 theController.stylesheets.push({ label:'Potlatch', data:'potlatch.css'});
                 setStylesheet('Potlatch','potlatch.css');
+              }
             }
                }