https://bugs.documentfoundation.org/show_bug.cgi?id=99317
Bug ID: 99317
Summary: Libre calc UNO sort hangs in Calc 5.2.0.0 Alpha). A
similar sort bug(99208) in the Calc GUI did this and
was fixed in this build.(EDITING)
Product: LibreOffice
Version: 5.2.0.0.alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Created attachment 124356
--> https://bugs.documentfoundation.org/attachment.cgi?id=124356&action=edit
Sample SRC XLS file
Libre Calc hangs when doing a sort via the UNO API.
This worked in Calc all versions prior to 5.1.
This previously also affected the GUI but was fixed after bug report 99208.
Here is sample python code that triggers the problem.
"""
frame = SRCXLSDoc.CurrentController.getFrame()
dispHelper =
context.ServiceManager.createInstance("com.sun.star.frame.DispatchHelper")
sortproptuple=()
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'ByRows'
PropVal.Value = True
sortproptuple+=(PropVal,)
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'HasHeader'
PropVal.Value = True
sortproptuple+=(PropVal,)
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'CaseSensitive'
PropVal.Value = False
sortproptuple+=(PropVal,)
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'NaturalSort'
PropVal.Value = True
sortproptuple+=(PropVal,)
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'IncludeAttribs'
PropVal.Value = True
sortproptuple+=(PropVal,)
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'UserDefIndex'
PropVal.Value = 0
sortproptuple+=(PropVal,)
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'Col1'
PropVal.Value = Sortbycolnum
sortproptuple+=(PropVal,)
PropVal = uno.createUnoStruct('com.sun.star.beans.PropertyValue')
PropVal.Name = 'Ascending1'
PropVal.Value = True
sortproptuple+=(PropVal,)
#This datasort freezes libre >=5.1
dispHelper.executeDispatch(frame, ".uno:DataSort","", 0, (sortproptuple))
"""
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs