[Libreoffice-bugs] [Bug 46579] Form fields 'Image Button' do not work in Forms

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 30 06:54:34 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=46579

--- Comment #18 from Lionel Elie Mamane <lionel at mamane.lu> ---
Wow, that's a strange bug indeed.

Text button and image button seem to have quite different implementations, not
sure why.

I see that text buttons, in forms/source/component/Button.cxx, have some
special treatment of URLs starting with ".uno:FormController/", in function
OButtonControl::getModelUrlFeatureId:

    // are we a URL button?
    if ( eButtonType == FormButtonType_URL )
    {
        // is it a feature URL?
        if ( isFormControllerURL( sUrl ) )
        {
            nFeatureId = OFormNavigationMapper::getFeatureId( sUrl );
        }
    }

My guess is that the same treatment must happen for image buttons, but doesn't.
Probably should happen either somewhere in ImageButton.cxx or in the parent
class clickableimage.cxx

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201130/eac9f408/attachment.htm>


More information about the Libreoffice-bugs mailing list