Fix for bug#301644; don't call SetContext if we ain't got no context
git-svn-id: svn://10.0.0.236/trunk@5756 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
5ec227a946
commit
00acaea3c1
@ -127,8 +127,8 @@ CFormElement *CFormElement::GetFormElement(CAbstractCX *pCX, LO_FormElementData
|
||||
pRetval = (CFormElement *)pFormData->ele_minimal.FE_Data;
|
||||
}
|
||||
|
||||
// Set up and/or update the relevant information in the class.
|
||||
if(pRetval != NULL) {
|
||||
// Set up and/or update the relevant information in the class, if possible.
|
||||
if(pCX && pRetval != NULL) {
|
||||
pRetval->SetContext(pCX);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user