https://bz.apache.org/ooo/show_bug.cgi?id=126391

          Issue ID: 126391
        Issue Type: DEFECT
           Summary: race in using udk api to set a fat border to a
                    rectangle/range in a text table
           Product: Writer
           Version: 4.1.1
          Hardware: PC
                OS: Linux64
            Status: UNCONFIRMED
          Severity: normal
          Priority: P5
         Component: formatting
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 84811
  --> https://bz.apache.org/ooo/attachment.cgi?id=84811&action=edit
wrong output

when trying to give a cellrange in a writer table fat borderlines more lines
are fattened than ordered.

inserting a sleep a more than 500 msec corrects this behaviour.
the time is dependend on at least the amount of work done to the table ahead of
this (eg , when also doing cell merging and text bolding this increases to 1000
msec)


 BorderLine borderstruct = new BorderLine();
 borderstruct.Color = 0;
 borderstruct.InnerLineWidth = 50;
 borderstruct.LineDistance = 0;
 borderstruct.OuterLineWidth = 0;


xCellRange = xCellRange.getCellRangeByPosition(1, 1, 2, 2);

XPropertySet xCellProperties = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, xCellRange);

xCellProperties.setPropertyValue("TopBorder", borderstruct);

Thread.sleep(500);

xCellProperties.setPropertyValue("RightBorder", borderstruct);
xCellProperties.setPropertyValue("BottomBorder", borderstruct);
xCellProperties.setPropertyValue("LeftBorder", borderstruct);

-- 
You are receiving this mail because:
You are the assignee for the issue.

Reply via email to