fix that's part of bug 81292 - labels feature. rs=sspitzer.

This commit is contained in:
ssu%netscape.com 2001-12-08 00:52:56 +00:00
Родитель db7b7cd6a8
Коммит 2f052fab78
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -979,7 +979,7 @@ NS_IMETHODIMP nsMsgDBView::GetRowProperties(PRInt32 index, nsISupportsArray *pro
}
// we only care if label is between 1 and PREF_LABELS_MAX inclusive.
if (NS_SUCCEEDED(msgHdr->GetLabel(&label)) && ((label >= 1) || (label <= PREF_LABELS_MAX)))
if (NS_SUCCEEDED(msgHdr->GetLabel(&label)) && (label >= 1) && (label <= PREF_LABELS_MAX))
{
// Set the row properties. This will color the background of a row given
// a particular label color.
@ -1060,7 +1060,7 @@ NS_IMETHODIMP nsMsgDBView::GetCellProperties(PRInt32 aRow, const PRUnichar *colI
#endif
// we only care if label is between 1 and PREF_LABELS_MAX inclusive.
if (NS_SUCCEEDED(msgHdr->GetLabel(&label)) && ((label >= 1) || (label <= PREF_LABELS_MAX)))
if (NS_SUCCEEDED(msgHdr->GetLabel(&label)) && (label >= 1) && (label <= PREF_LABELS_MAX))
{
// Set the cell properties. This will color the text of a column given
// a particular label color.