https://bugs.documentfoundation.org/show_bug.cgi?id=145960
Bug ID: 145960
Summary: 'inappropriate property value' constructing a value of
SetPropertyValue for a boolean property using Not
Product: LibreOffice
Version: 7.2.2.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Consider this Basic code:
> Sub TestGlobalSheetSettings
> oManager = GetProcessServiceManager()
> oConfigProvider =
> oManager.createInstance("com.sun.star.configuration.ConfigurationProvider")
> Dim aArg(0 to 0) As New com.sun.star.beans.PropertyValue
> aArg(0).Name = "nodepath"
> aArg(0).Value = "/org.openoffice.Office.Math/Misc"
> oConfigAccess =
> oConfigProvider.createInstanceWithArguments("com.sun.star.configuration.ConfigurationUpdateAccess",
> aArg)
> oConfigAccess.SetPropertyValue("AutoCloseBrackets", True)
> oConfigAccess.SetPropertyValue("AutoCloseBrackets", Not True)
> oConfigAccess.CommitChanges()
> End Sub
Running it, the line 'oConfigAccess.SetPropertyValue("AutoCloseBrackets", Not
True)' fails with the message:
> BASIC runtime error.
> An exception occurred
> Type: com.sun.star.lang.IllegalArgumentException
> Message: configmgr inappropriate property value.
The previous line, using plain boolean constant, without Not, passes fine.
Tested with Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded
and current master.
--
You are receiving this mail because:
You are the assignee for the bug.