From ceb56bec79240e94e222f306ce910c9ebae65b18 Mon Sep 17 00:00:00 2001 From: "mjudge%netscape.com" Date: Wed, 7 Aug 2002 17:47:28 +0000 Subject: [PATCH] crasher fix: forgot {} around an indented block of code. this will fix 161444 and 161512. r=brade sr= smfr --- content/base/src/nsSelection.cpp | 2 ++ layout/generic/nsSelection.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/content/base/src/nsSelection.cpp b/content/base/src/nsSelection.cpp index 2c47651734c9..6b27f360bb10 100644 --- a/content/base/src/nsSelection.cpp +++ b/content/base/src/nsSelection.cpp @@ -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)) diff --git a/layout/generic/nsSelection.cpp b/layout/generic/nsSelection.cpp index 2c47651734c9..6b27f360bb10 100644 --- a/layout/generic/nsSelection.cpp +++ b/layout/generic/nsSelection.cpp @@ -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))