r1796 - branches/bxe_2_0/js

[email protected] Tue, 20 Nov 2007 18:33:26 +0100 (CET)
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Tue Nov 20 18:33:25 2007
New Revision: 1796

Log:
fix BXEB-59
if there are too many cols, just discard them :)



Modified:
   branches/bxe_2_0/js/table.js

Modified: branches/bxe_2_0/js/table.js
==============================================================================
--- branches/bxe_2_0/js/table.js	(original)
+++ branches/bxe_2_0/js/table.js	Tue Nov 20 18:33:25 2007
@@ -1197,6 +1197,11 @@
 			if(! (cell.XMLNode  && cell.XMLNode.vdom && (cell.XMLNode.vdom.bxeTabletype == "table-cell" || cell.XMLNode.vdom.bxeTabletype == "table-col")))  {continue;} //caution: may be there are text nodes (CRLF or whitespace)
 			
 			tc++;
+			
+			if (!table[tr][tc]) {
+				continue;
+			}
+			
 			//find the homogenious matrix pos
 			//alert("tr="+tr+" tc="+tc);
 			while(table[tr][tc][0] > 0) {
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs