w2x table improvements (option to always export relative width)

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@150 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2012-04-17 12:46:45 +00:00
parent e330b3dfab
commit d62ce9ad22
6 changed files with 46 additions and 19 deletions

View file

@ -16,9 +16,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
* Copyright: 2002-2010 by Henrik Just
* Copyright: 2002-2012 by Henrik Just
*
* Version 1.2 (2010-03-15)
* Version 1.4 (2012-04-12)
*
* All Rights Reserved.
*/
@ -135,7 +135,9 @@ public class TableReader {
sRelColWidth[nCol] = (100.0F*nRelColWidth[nCol]/nColSum)+"%";
}
else {
sRelColWidth[nCol] = (100.0F/nCols)+"%";
// Calculate the relative column width from the absolute column widths
// This may not add up to exactly 100%, but we will live with that
sRelColWidth[nCol] = Misc.divide(sColWidth[nCol], sTableWidth, true);
}
}