mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix: empty textbox double click causes fatal error
This commit is contained in:
parent
98abbfd838
commit
2ee2ca7a38
1 changed files with 3 additions and 0 deletions
|
|
@ -337,6 +337,9 @@ inline std::wstring get_alphabet(wchar_t c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextBox::tokenSelectAt(int index) {
|
void TextBox::tokenSelectAt(int index) {
|
||||||
|
if (input.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
int left = index;
|
int left = index;
|
||||||
int right = index;
|
int right = index;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue