https://bugs.documentfoundation.org/show_bug.cgi?id=99317
--- Comment #8 from Quinton <[email protected]> --- The freeze happens at the end of this func. ### def SortSheetBy(context,SRCXLSDoc,mysheet,Sortbycolnum): frame = SRCXLSDoc.CurrentController.getFrame() #print(frame) dispHelper = context.ServiceManager.createInstance("com.sun.star.frame.DispatchHelper") #print(dispHelper) 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,) print("freeze expected") #This datasort freezes libre >=5.1 dispHelper.executeDispatch(frame, ".uno:DataSort","", 0, (sortproptuple)) print("freeze avoided") -- 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
