Bug 73478 - [BASIC] Broken API in com.sun.star.awt.ImageScaleMode.Isotropic
Summary: [BASIC] Broken API in com.sun.star.awt.ImageScaleMode.Isotropic
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.2.0.1 rc
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-10 15:09 UTC by Olivier Hallot
Modified: 2014-01-10 15:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.