https://bugs.documentfoundation.org/show_bug.cgi?id=162987

            Bug ID: 162987
           Summary: Executing .uno:DataFilterAutoFilter on a hidden
                    spreadsheet crashes
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Consider this Basic code:

sub crash
  Dim args1(0) As New com.sun.star.beans.PropertyValue
  args1(0).Name = "Hidden"
  args1(0).Value = True
  doc = StarDesktop.loadComponentFromURL("private:factory/scalc", "_blank", 0,
args1())
  sheet = doc.Sheets(0)
  sheet.getCellRangeByName("A1").Formula = "values"
  sheet.getCellRangeByName("A2").Formula = "0"
  sheet.getCellRangeByName("A3").Formula = "1"
  frame = doc.CurrentController.Frame
  dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
  Dim args2(0) As New com.sun.star.beans.PropertyValue
  args2(0).Name = "ToPoint"
  args2(0).Value = "$A$1"
  dispatcher.executeDispatch(frame, ".uno:GoToCell", "", 0, args2())
  dispatcher.executeDispatch(frame, ".uno:DataFilterAutoFilter", "", 0,
Array())
  doc.close(true)
end sub

It crashes on the dispatching of .uno:DataFilterAutoFilter.

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

Reply via email to