From: <ral...@us...> - 2013-11-11 21:55:13
|
Revision: 8967 http://sourceforge.net/p/planeshift/code/8967 Author: ralphcampbell Date: 2013-11-11 21:55:10 +0000 (Mon, 11 Nov 2013) Log Message: ----------- Fix possesive in chat bubbles too (see bug 6156) Modified Paths: -------------- trunk/src/client/chatbubbles.cpp Modified: trunk/src/client/chatbubbles.cpp =================================================================== --- trunk/src/client/chatbubbles.cpp 2013-11-11 17:25:43 UTC (rev 8966) +++ trunk/src/client/chatbubbles.cpp 2013-11-11 21:55:10 UTC (rev 8967) @@ -319,7 +319,8 @@ BubbleChatType mixType; if(chatMsg.sText.StartsWith("/my")) //we have to add an 's { - firstName.Append("'s"); + size_t len = firstName.Length() - 1; + firstName.Append(firstName.GetAt(len) == 's' ? "'" : "'s"); subType = GetTemplate(CHATBUBBLE_MY); } else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |