crasher fix: forgot {} around an indented block of code. this will fix 161444 and 161512. r=brade sr= smfr

This commit is contained in:
mjudge%netscape.com 2002-08-07 17:47:28 +00:00
parent b2e1a09772
commit ceb56bec79
2 changed files with 4 additions and 0 deletions

View File

@ -4983,6 +4983,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
{
result = mFrameSelection->GetTracker()->GetPrimaryFrameFor(innercontent, &frame);
if (NS_SUCCEEDED(result) && frame)
{
//NOTE: eSpreadDown is now IGNORED. Selected state is set only for given frame
frame->SetSelected(aPresContext, nsnull,aFlags,eSpreadDown);//spread from here to hit all frames in flow
frame->GetRect(frameRect);
@ -5000,6 +5001,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
break;
}
//if the frame is splittable and this frame is 0,0 then set the next in flow frame to be selected also
}
}
result = aInnerIter->Next();
if (NS_FAILED(result))

View File

@ -4983,6 +4983,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
{
result = mFrameSelection->GetTracker()->GetPrimaryFrameFor(innercontent, &frame);
if (NS_SUCCEEDED(result) && frame)
{
//NOTE: eSpreadDown is now IGNORED. Selected state is set only for given frame
frame->SetSelected(aPresContext, nsnull,aFlags,eSpreadDown);//spread from here to hit all frames in flow
frame->GetRect(frameRect);
@ -5000,6 +5001,7 @@ nsTypedSelection::selectFrames(nsIPresContext* aPresContext,
break;
}
//if the frame is splittable and this frame is 0,0 then set the next in flow frame to be selected also
}
}
result = aInnerIter->Next();
if (NS_FAILED(result))