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

            Bug ID: 105212
           Summary: SortDescriptor Delimeter property changed to CHAR
                    value
           Product: LibreOffice
           Version: 5.2.0.0.beta1
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: devsepp...@gmail.com

Created attachment 130281
  --> https://bugs.documentfoundation.org/attachment.cgi?id=130281&action=edit
Example Writer document has a few lines and a button that launches
sort()-macro. Works Before LO 5.2 beta1

SortDescriptor is used to set sorting parameters when sorting text from a macro
ie.
  oVCursor = ThisComponent.getCurrentController().getViewCursor()
  oTCursor = oVCursor.getText.createTextCursorByRange(oVCursor)
  SortDesc = oTCursor.createSortDescriptor()

prior to LO 5.2 beta1 (Delimeter) SortDesc(1).Value used to be an integer value
presenting the delimeter character.

>From LO 5.2 beta1 (Delimeter) SortDesc(1).Value is expected to be an char
value.

As Starbasic macro language does not have native char type, it is impossible to
change the Delimeter character from a Starbasic macro.

ie.
  SortDesc(1).Value = 32
  oTCursor.sort(SortDesc())

fails.

Attached example file has a few lines and a button that launches sort()-macro.
Before LO 5.2 beta1 the macro works and afterwards it does not.

Please make the sort method accept Delimeter that has an integer value.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to