Skip to content

Commit 390966f

Browse files
committed
* FIX:[XrEPropes]Render Text
1 parent 86176dc commit 390966f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/Editors/XrEProps/UIPropertiesForm_DrawItem.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ void UIPropertiesForm::DrawItem(const char* name, PropItem* node)
445445
a++;
446446
text[i] = str[a];
447447
}
448+
if(str.size()>16||str.size()==0)
448449
for (; i < std::min(size_t(16), str.size()) + 3; i++)
449450
{
450451
text[i] = '.';
@@ -479,6 +480,7 @@ void UIPropertiesForm::DrawItem(const char* name, PropItem* node)
479480
a++;
480481
text[i] = str[a];
481482
}
483+
if (str.size() > 16 || str.size() == 0)
482484
for (; i < std::min(size_t(16), str.size()) + 3; i++)
483485
{
484486
text[i] = '.';
@@ -514,6 +516,7 @@ void UIPropertiesForm::DrawItem(const char* name, PropItem* node)
514516
a++;
515517
text[i] = str[a];
516518
}
519+
if (str.size() > 16 || str.size() == 0)
517520
for (; i < std::min(size_t(16), str.size()) + 3; i++)
518521
{
519522
text[i] = '.';

0 commit comments

Comments
 (0)