mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[escher] Fix buffer choice in TextField::glyphFrameAtPosition
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
constexpr static int k_tabCharacterWidth = 4;
|
||||
|
||||
KDSize KDFont::stringSizeUntil(const char * text, const char * limit) const {
|
||||
if (text == nullptr) {
|
||||
if (text == nullptr || (limit != nullptr && text >= limit)) {
|
||||
return KDSizeZero;
|
||||
}
|
||||
KDSize stringSize = KDSize(0, m_glyphSize.height());
|
||||
|
||||
Reference in New Issue
Block a user