mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
acc2b1f488
commit
a9a12e6690
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user