Apache OpenOffice (AOO) Bugzilla – Issue 42353
Repaint error when selecting multiple sheets via API
Last modified: 2017-05-20 11:27:33 UTC
Executing the following maco is supposed to select the first two sheets of a CalcDocument ... unfortunately the document has to loose and regain the focus before the new selection is visible. Sub Main xCalcDoc = ThisComponent xCellRanges = xCalcDoc.createInstance("com.sun.star.sheet.SheetCellRanges") xCell1 = xCalcDoc.sheets(0).getCellByPosition(0,0) xCell2 = xCalcDoc.sheets(1).getCellByPosition(0,0) xCellRanges.insertByName("first",xCell1) xCellRanges.insertByName("second",xCell2) xSelectionSupplier = xCalcDoc.currentController xSelectionSupplier.select(xCellRanges) End Sub
can reproduce with m121.
Reset assigne to the default "issues@openoffice.apache.org".