diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2018-04-13 18:29:47 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2018-04-13 18:29:47 +0300 |
commit | d6f1dc06ee590aa2aeb9d3eb953a1217a83c9482 (patch) | |
tree | 1fe61dbf7344a8382c239db5be754ed5ec253fa0 /indra/newview | |
parent | 46817fcbd3133cd27dee27309ff20f12ce4ce7b0 (diff) |
MAINT-8532 FIXED Group invite text is overlapped when an empty string is present in the group description ending
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llnotificationlistitem.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llnotificationlistitem.cpp b/indra/newview/llnotificationlistitem.cpp index cbcf9cac9c..f2de8e54a0 100644 --- a/indra/newview/llnotificationlistitem.cpp +++ b/indra/newview/llnotificationlistitem.cpp @@ -288,9 +288,7 @@ BOOL LLGroupInviteNotificationListItem::postBuild() //invitation with any non-default group role, doesn't have newline characters at the end unlike simple invitations std::string invitation_desc = mNoticeTextExp->getValue().asString(); - boost::regex pattern = boost::regex("\n\n$", boost::regex::perl|boost::regex::icase); - boost::match_results<std::string::const_iterator> matches; - if(!boost::regex_search(invitation_desc, matches, pattern)) + if (invitation_desc.substr(invitation_desc.size() - 2) != "\n\n") { invitation_desc += "\n\n"; mNoticeTextExp->setValue(invitation_desc); |