https://bugs.documentfoundation.org/show_bug.cgi?id=164005
Bug ID: 164005
Summary: Hyphenator service: can't call createPossibleHyphens
until I call getLocales
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: sdk
Assignee: [email protected]
Reporter: [email protected]
Consider this Basic code:
sub testHyphenator
hyphenator = createUnoService("com.sun.star.linguistic2.Hyphenator")
locale = new com.sun.star.lang.Locale
locale.Language = "en"
locale.Country = "US"
result = hyphenator.createPossibleHyphens("hyphenate", locale, array())
MsgBox IsNull(result)
hyphenator.getLocales()
result = hyphenator.createPossibleHyphens("hyphenate", locale, array())
MsgBox IsNull(result)
MsgBox result.getPossibleHyphens()
end sub
Restart LibreOffice (to make sure that hyphenation service has not yet been
used), and run it in Basic IDE.
The first MsgBox shows an unexpected True.
--
You are receiving this mail because:
You are the assignee for the bug.