Label::set_lines_skipped Fail if passed a negative value
This commit is contained in:
parent
ff8a1fdc19
commit
d7bb7cad47
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue