diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 1346eb113e6d..16b080074bd9 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -2054,7 +2054,7 @@ static FrameTarget GetSelectionClosestFrame(nsIFrame* aFrame, nsPoint aPoint) } } } while (kid = kid->GetNextSibling()); - if (closestFrame); + if (closestFrame) return GetSelectionClosestFrameForChild(closestFrame, aPoint); } return FrameTarget(aFrame, PR_FALSE, PR_FALSE);