Bug 73478

Summary: [BASIC] Broken API in com.sun.star.awt.ImageScaleMode.Isotropic
Product: LibreOffice Reporter: Olivier Hallot <olivier.hallot>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium CC: sbergman
Version: 4.2.0.1 rc   
Hardware: Other   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:

Description Olivier Hallot 2014-01-10 15:09:18 UTC
Broken API when refering to constant sun.star.awt.ImageScaleMode.Isotropic

example:

Sub Main

n = sun.star.awt.ImageScaleMode.Isotropic

End Sub

Error message: Property or method undefined: Isotropic

However, Isotropic is defined in

http://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star_1_1awt_1_1ImageScaleMode.html
Comment 1 Olivier Hallot 2014-01-10 15:33:56 UTC
Actually, none of the sun.star.awt.ImageScaleMode.* modes work

Fails with
Isotropic
Anisotropic
None

Works in LO 4.1.4 under Linux
Comment 2 Stephan Bergmann 2014-01-10 15:39:26 UTC
[your example misses the leading "com." in "com.sun.star.awt.ImageScaleMode.Isotropic"]

The members of -- unpublished -- constant group com.sun.star.awt.ImageScaleMode were renamed from title- to uppercase in <http://cgit.freedesktop.org/libreoffice/core/commit/?id=949f97ba480f96c7892602f3208467ac925fab15> "Resolves: #i121162# ImageScaleMode constants should be in UPPERCASE" (towards LO 4.2), and referencing such UNOIDL constant names is apparently case-sensitivie in Basic.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.