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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user