fix 342886 crash when removing the last tag on a message after adding and removing the last tag before, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@201316 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -360,6 +360,11 @@ nsresult nsMsgDBView::AppendKeywordProperties(const char *keywords, nsISupportsA
|
||||
// append that as a property.
|
||||
nsCStringArray keywordsArray;
|
||||
nsCAutoString color;
|
||||
// skip leading spaces
|
||||
while (*keywords == ' ')
|
||||
keywords++;
|
||||
if (!*keywords)
|
||||
return NS_OK;
|
||||
keywordsArray.ParseString(keywords, " ");
|
||||
nsresult rv;
|
||||
if (!mTagService)
|
||||
|
||||
@@ -1243,6 +1243,8 @@ PRBool MsgFindKeyword(const nsACString &keyword, nsACString &keywords, nsACStrin
|
||||
{
|
||||
if (*end == ' ')
|
||||
end++;
|
||||
if (*beforeStart == ' ' && endMatches)
|
||||
start--;
|
||||
return PR_TRUE;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user