Author: david
Date: Wed Sep 21 15:59:42 2011
New Revision: 9782

Log:
Call __toString() explicitly.  Drop leading whitespace in label. Cosmetic 
changes to code

Modified:
   trunk/lib/model/QubitPhysicalObject.php

Modified: trunk/lib/model/QubitPhysicalObject.php
==============================================================================
--- trunk/lib/model/QubitPhysicalObject.php     Wed Sep 21 15:52:01 2011        
(r9781)
+++ trunk/lib/model/QubitPhysicalObject.php     Wed Sep 21 15:59:42 2011        
(r9782)
@@ -51,12 +51,12 @@
 
     if ($this->type)
     {
-      $label .= ' '.$this->type.': ';
+      $label .= $this->type.': ';
     }
 
-    $label .= $this;
+    $label .= $this->__toString();
 
-    if (1 > strlen($location = $this->getLocation()))
+    if (0 == strlen($location = $this->getLocation()))
     {
       $location = $this->getLocation(array('sourceCulture' => true));
     }

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to