https://bugs.freedesktop.org/show_bug.cgi?id=49629

             Bug #: 49629
           Summary: Macros: GotoEndOfWord fails when footnote at word end
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.5.2 Release
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
 Status Whiteboard: BSA
          Severity: normal
          Priority: medium
         Component: BASIC
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Problem description: 
a GotoEndOfWord fails, when there is a footnote at the end of a word

Steps to reproduce:
- Type a word and a footnote directly at the end of the word

- write a macro kind of like this:
Dim sText As String
xDoc=ThisComponent
oText=xDoc.Text
xSelection = xDoc.CurrentController.getSelection
xRange=xSelection(0)
xCursor=xRange.getText.createTextCursorByRange(xRange)
xCursor.gotoStartOfWord(False)
xCursor.GotoEndOfWord(True)
sText=xCursor.GetString()
msgbox "sText:" + sText

- execute Macro with cursor inside the word with the attached footnote

Current behavior:
sText is empty

Expected behavior:
stext should contain text from beginning of word to the end of the word

Platform (if different from the browser): 
Win7 64bit

Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101
Firefox/12.0

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to