Merge pull request #46286 from kleonc/label_set_lines_skipped
Label::set_lines_skipped Fail if passed a negative value
This commit is contained in:
commit
ee093a14ef
@ -566,6 +566,7 @@ float Label::get_percent_visible() const {
|
||||
}
|
||||
|
||||
void Label::set_lines_skipped(int p_lines) {
|
||||
ERR_FAIL_COND(p_lines < 0);
|
||||
lines_skipped = p_lines;
|
||||
_update_visible();
|
||||
update();
|
||||
|
Loading…
Reference in New Issue
Block a user