Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-368

Column.setWidth wrong size

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.5-incubating, 0.6-incubating
    • 0.6.2-incubating
    • java
    • None
    • Debian GNU/Linux 7.0
      Java 1.7u25
      LibreOffice 3.5.4.2 350m1(build:2)

    Description

      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.

      Attachments

        Activity

          People

            svanteschubert Svante Schubert
            reaper42 Reaper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: