Revision: 4259
          http://vexi.svn.sourceforge.net/vexi/?rev=4259&view=rev
Author:   clrg
Date:     2011-09-26 01:50:53 +0000 (Mon, 26 Sep 2011)
Log Message:
-----------
Robustness fix for row

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.t      
2011-09-23 22:33:28 UTC (rev 4258)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/row.t      
2011-09-26 01:50:53 UTC (rev 4259)
@@ -1,4 +1,4 @@
-<!-- Copyright 2009 - see COPYING for details [LGPL] -->
+<!-- Copyright 2011 - see COPYING for details [LGPL] -->
 
 <vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.widget.table">
     <meta:doc>
@@ -30,10 +30,10 @@
         if (v) {
             var h = trapee.v_head[trapname];
             v.v_head = h;
-            v.hshrink = h.hshrink;
-            v.display = h.display;
-            v.minwidth = h.contentwidth;
-            v.maxwidth = h.maxwidth;
+            v.hshrink = h?.hshrink;
+            v.display = h?.display;
+            v.minwidth = h?.contentwidth;
+            v.maxwidth = h?.maxwidth;
         } else {
             var _v = trapee[trapname];
             if (_v) {
@@ -53,10 +53,10 @@
             }
             var h = v[i];
             c.v_head = h;
-            c.hshrink = h.hshrink;
-            c.display = h.display;
-            c.minwidth = h.contentwidth;
-            c.maxwidth = h.maxwidth;
+            c.hshrink = h?.hshrink;
+            c.display = h?.display;
+            c.minwidth = h?.contentwidth;
+            c.maxwidth = h?.maxwidth;
         }
     }
     

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to