Merge branch 'DRTVWR-600-maint-A' of https://github.com/secondlife/viewer

# Conflicts:
#	indra/llappearance/llpolymorph.cpp
#	indra/llui/lltextparser.cpp
master
Ansariel 2024-06-09 17:02:21 +02:00
commit 7ab12bd376
2 changed files with 2 additions and 2 deletions

View File

@ -387,7 +387,7 @@ bool LLPolyMorphTarget::setInfo(LLPolyMorphTargetInfo* info)
{
const std::string driven_tag = "_Driven";
auto pos = morph_param_name.find(driven_tag);
if (pos != std::string::npos)
if (pos != std::string::npos && pos > 0)
{
morph_param_name = morph_param_name.substr(0,pos);
mMorphData = mMesh->getMorphData(morph_param_name);

View File

@ -74,7 +74,7 @@ S32 LLTextParser::findPattern(const std::string &text, LLSD highlight)
break;
case ENDS_WITH:
auto pos = ltext.rfind(pattern);
if (pos != std::string::npos && pos >= 0 && (ltext.length()-pattern.length()==pos)) found = pos;
if (pos != std::string::npos && pos >= 0 && (ltext.length() - pattern.length() == pos)) found = pos;
break;
}
return static_cast<S32>(found);