[
https://issues.apache.org/jira/browse/ODFTOOLKIT-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Svante Schubert resolved ODFTOOLKIT-368.
----------------------------------------
Resolution: Fixed
Already fixed in latest sources
> Column.setWidth wrong size
> ---------------------------
>
> Key: ODFTOOLKIT-368
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-368
> Project: ODF Toolkit
> Issue Type: Bug
> Components: java
> Affects Versions: 0.5-incubating, 0.6-incubating
> Environment: Debian GNU/Linux 7.0
> Java 1.7u25
> LibreOffice 3.5.4.2 350m1(build:2)
> Reporter: Reaper
>
> TextDocument out;
> try
> {
> out=TextDocument.newTextDocument();
> Table tab=Table.newTable(out, 1, 2);
>
> tab.setWidth(160); //Table width sets to 160mm - OK.
>
> tab.getColumnByIndex(0).setWidth(40); //Col width #0 sets to
> 37.6mm - it's not good!
>
> out.save("out.odt");
> java.awt.Desktop.getDesktop().open((new File("out.odt")));
>
> }
> catch (Exception e)
> {
> e.printStackTrace();
> }
> System.exit(0);
> }
> Also
> {
> out=TextDocument.newTextDocument();
> Table tab=Table.newTable(out, 1, 4);
> tab.setWidth(160);
> for (int i=0;i<4;i++)
> {
> tab.getColumnByIndex(i).setWidth(42.3);
> }
> ...
> }
> Make table with {40mm;30mm;22,5mm;67.5mm} col widths.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)