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

git-svn-id: svn://10.0.0.236/trunk@126675 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com 2002-08-07 17:47:28 +00:00
parent 6f630bf5ee
commit 62be4351bb
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))