mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
fix 342886 crash when removing the last tag on a message after adding and removing the last tag before, sr=mscott
This commit is contained in:
parent
a0bfaf1da4
commit
4ededa78e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user