Fix for bug #86492 Double click does not bring up object props dialog.

- Fixed 'if' statement in nsFrame::GetContentAndOffsetsFromPoint()
    so that it checks contentOffset instead of the uninitialized aContentOffset.

r=jfrancis@netscape.com  sr=attinasi@netscape.com  a=blizzard@mozilla.org
This commit is contained in:
kin%netscape.com 2001-06-21 06:35:37 +00:00
parent acc2b1f488
commit a9a12e6690
2 changed files with 2 additions and 2 deletions

View File

@ -1756,7 +1756,7 @@ nsresult nsFrame::GetContentAndOffsetsFromPoint(nsIPresContext* aCX,
PRInt32 contentOffset(aContentOffset); //temp to hold old value in case of failure
result = (*aNewContent)->IndexOf(mContent, contentOffset);
if (NS_FAILED(result) || aContentOffset < 0)
if (NS_FAILED(result) || contentOffset < 0)
{
return (result?result:NS_ERROR_FAILURE);
}

View File

@ -1756,7 +1756,7 @@ nsresult nsFrame::GetContentAndOffsetsFromPoint(nsIPresContext* aCX,
PRInt32 contentOffset(aContentOffset); //temp to hold old value in case of failure
result = (*aNewContent)->IndexOf(mContent, contentOffset);
if (NS_FAILED(result) || aContentOffset < 0)
if (NS_FAILED(result) || contentOffset < 0)
{
return (result?result:NS_ERROR_FAILURE);
}