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

             Bug #: 51611
           Summary: Macros: Cursor's GotoEndOfWord selects dot
    Classification: Unclassified
           Product: LibreOffice
           Version: 3.5.4 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: 
Function GotoEndOfWord selects dot after the word.
Please try following macro:
#v+
Sub Main
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)
End Sub
#v-

When cursor is in word that ends with dot, dot is treated as part of word and
displayed. I have also checked other characters:
, : ; | „ ” " ` ' ] ) -
every one of these is not treated as part of the word by above macro.

Dot is NOT selected when I double-click in middle of the word.

This may or may not be related to #49629

Expected behavior:
Dot is definitely not part of word, so it should not be treated as such.

Platform (if different from the browser): 
Browser: Opera/9.80 (X11; Linux x86_64; U; pl) Presto/2.10.289 Version/12.00
OS: Debian wheezy (testing) amd64
LO: 3.5.4 from Debian repo

-- 
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