mirror of
https://github.com/godotengine/godot.git
synced 2024-12-14 15:14:41 +00:00
Label::set_lines_skipped Fail if passed a negative value
(cherry picked from commit d7bb7cad47
)
This commit is contained in:
parent
bd7c24371d
commit
566ad4fd22
@ -630,7 +630,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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user