Skip to content

[Bug] Ambiguous Property ID in Roller::set_selected (LVGL 9.5 Migration) #214

Description

@pedapudi

Description

In widgets/roller.cpp, the set_selected method creates an overloading ambiguity in LVGL 9.5:

return set_property(LV_PROPERTY_ROLLER_SELECTED,
                    static_cast<int32_t>(sel_opt),
                    anim == AnimEnable::On ? 1 : 0);

The third argument (1 or 0) is ambiguous between int32_t and bool overloads for set_property.

Proposed Fix

Change the third argument to an explicit bool:

return set_property(LV_PROPERTY_ROLLER_SELECTED,
                    static_cast<int32_t>(sel_opt),
                    anim == AnimEnable::On);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions