mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 05:06:25 -04:00
get_num_rows was incorrect until text was generated
This commit is contained in:
parent
751326a3f9
commit
a2d155d126
@ -410,7 +410,7 @@ do_measure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LVector2f ul, lr;
|
LVector2f ul, lr;
|
||||||
int num_rows;
|
int num_rows = 0;
|
||||||
measure_text(text.c_str(), ul, lr, num_rows);
|
measure_text(text.c_str(), ul, lr, num_rows);
|
||||||
|
|
||||||
_num_rows = num_rows;
|
_num_rows = num_rows;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user