Unusual code genertion

What do you want to achieve?

I notice that generated code in ui.c looks a little odd.

if("" == “”) lv_textarea_set_accepted_chars(ui_taServerPort, NULL);

Is this intended ?

What have you tried so far?

N/A

Screenshot or video

N/A

Others

SLS 1.0.3.0

Hi,

It’s bug. We will fix it in the next release, thanks.

I have a similar problem. I set 1234567890 as the accepted characters in SquareLine Studio.

SquareLine generated the following code for LVGL text area widget.

if("1234567890" == "") lv_textarea_set_accepted_chars(ui_TextAreaSettingsPassword, NULL);
    else lv_textarea_set_accepted_chars(ui_TextAreaSettingsPassword, "1234567890");

This results in: error: comparison with string literal results in unspecified behavior [-Werror=address]

Looking into it, thank you!