mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
fix(ui): correct handling of bytes attribute when loading CSimpleEditBox XML
This commit is contained in:
1 file changed
+2
-2
@@ -674,9 +674,9 @@ void CSimpleEditBox::LoadXML(XMLNode* node, CStatus* status) {
|
|||||||
int32_t bytes = SStrToInt(bytesAttr);
|
int32_t bytes = SStrToInt(bytesAttr);
|
||||||
|
|
||||||
if (bytes <= 0) {
|
if (bytes <= 0) {
|
||||||
this->m_textLength = -1;
|
this->m_textLengthMax = -1;
|
||||||
} else {
|
} else {
|
||||||
this->m_textLength = bytes - 1;
|
this->m_textLengthMax = bytes - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user