Fix timing problems for controls using index(). Bug 291797, r=smaug+doronr, a=mkaply, NPOTB

git-svn-id: svn://10.0.0.236/trunk@172801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
allan%beaufour.dk
2005-04-28 07:23:38 +00:00
parent 1d52328760
commit 306e4220d3
3 changed files with 133 additions and 117 deletions

View File

@@ -232,7 +232,8 @@ nsXFormsUtilityService::GetRepeatIndex(nsIDOMNode *aRepeat, PRUint32 *aIndex)
*aIndex = 0;
nsCOMPtr<nsIXFormsRepeatElement> repeatEle = do_QueryInterface(aRepeat);
NS_ENSURE_TRUE(repeatEle, NS_ERROR_NULL_POINTER);
return repeatEle->GetIndex(aIndex);
///
/// @bug This should somehow end up in a NaN per the XForms 1.0 Errata (XXX)
return repeatEle ? repeatEle->GetIndex(aIndex) : NS_OK;
}