|
From: creedon <icr...@us...> - 2005-12-05 21:11:43
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13448 Modified Files: tableformats.c Log Message: use maxtablecols for column number setting and checking instead of hard coded value Index: tableformats.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/tableformats.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tableformats.c 11 Jan 2005 22:48:11 -0000 1.4 --- tableformats.c 5 Dec 2005 21:11:28 -0000 1.5 *************** *** 651,655 **** hf = *hformats; /*copy into register*/ ! (**hf).ctcols = 3; //(**hf).defaultcolwidth = (r.right - r.left) / fixedctcols; /*arrgh: slight bias to 3-col tables*/ --- 651,655 ---- hf = *hformats; /*copy into register*/ ! (**hf).ctcols = maxtablecols; /* 2005-10-03 creedon - in case more columns are added, just one place to change*/ //(**hf).defaultcolwidth = (r.right - r.left) / fixedctcols; /*arrgh: slight bias to 3-col tables*/ *************** *** 1110,1116 **** #ifdef fldebug ! if ((**hf).ctcols != 3) { // assert ((**hf).ctcols == 3); // report it ! (**hf).ctcols = 3; // fix it } #endif --- 1110,1117 ---- #ifdef fldebug ! /* 2005-10-03 creedon: in case more columns are added, just one place to change */ ! if ((**hf).ctcols != maxtablecols) { // assert ((**hf).ctcols == 3); // report it ! (**hf).ctcols = maxtablecols; // fix it } #endif |