a=leaf. r=sfraser. fixing ime lockup. stupid mistake on my part

git-svn-id: svn://10.0.0.236/trunk@65502 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com 2000-04-07 19:32:46 +00:00
parent a1a3736941
commit 4d25156406
2 changed files with 24 additions and 24 deletions

View File

@ -829,19 +829,19 @@ DrawSelectionIterator::DrawSelectionIterator(const SelectionDetails *aSelDetails
memset(mTypes,0,mLength);//initialize to 0
while (details)
{
if (!(details->mType & SELECTION_TYPES_WE_CARE_ABOUT))
continue;
if (details->mStart == details->mEnd)
continue;//collapsed selections need not apply
mInit = PR_TRUE;//WE FOUND SOMETHING WE CARE ABOUT
for (int i = details->mStart; i < details->mEnd; i++)
if ((details->mType & SELECTION_TYPES_WE_CARE_ABOUT ) &&
(details->mStart != details->mEnd))
{
if ((PRUint32)i>=mLength)
{
NS_ASSERTION(0,"Selection Details out of range?");
return;//eh
}
mTypes[i]|=details->mType;//add this bit
mInit = PR_TRUE;//WE FOUND SOMETHING WE CARE ABOUT
for (int i = details->mStart; i < details->mEnd; i++)
{
if ((PRUint32)i>=mLength)
{
NS_ASSERTION(0,"Selection Details out of range?");
return;//eh
}
mTypes[i]|=details->mType;//add this bit
}
}
details= details->mNext;
}

View File

@ -829,19 +829,19 @@ DrawSelectionIterator::DrawSelectionIterator(const SelectionDetails *aSelDetails
memset(mTypes,0,mLength);//initialize to 0
while (details)
{
if (!(details->mType & SELECTION_TYPES_WE_CARE_ABOUT))
continue;
if (details->mStart == details->mEnd)
continue;//collapsed selections need not apply
mInit = PR_TRUE;//WE FOUND SOMETHING WE CARE ABOUT
for (int i = details->mStart; i < details->mEnd; i++)
if ((details->mType & SELECTION_TYPES_WE_CARE_ABOUT ) &&
(details->mStart != details->mEnd))
{
if ((PRUint32)i>=mLength)
{
NS_ASSERTION(0,"Selection Details out of range?");
return;//eh
}
mTypes[i]|=details->mType;//add this bit
mInit = PR_TRUE;//WE FOUND SOMETHING WE CARE ABOUT
for (int i = details->mStart; i < details->mEnd; i++)
{
if ((PRUint32)i>=mLength)
{
NS_ASSERTION(0,"Selection Details out of range?");
return;//eh
}
mTypes[i]|=details->mType;//add this bit
}
}
details= details->mNext;
}