ignore formfield outside fldinst

This commit is contained in:
Miklos Vajna 2011-07-11 13:42:43 +02:00
parent 63f4b1367f
commit c4f7573181

View file

@ -932,7 +932,8 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
m_pCurrentBuffer = &m_aShapetextBuffer; m_pCurrentBuffer = &m_aShapetextBuffer;
break; break;
case RTF_FORMFIELD: case RTF_FORMFIELD:
m_aStates.top().nDestinationState = DESTINATION_FORMFIELD; if (m_aStates.top().nDestinationState == DESTINATION_FIELDINSTRUCTION)
m_aStates.top().nDestinationState = DESTINATION_FORMFIELD;
break; break;
case RTF_FFNAME: case RTF_FFNAME:
m_aStates.top().nDestinationState = DESTINATION_FORMFIELDNAME; m_aStates.top().nDestinationState = DESTINATION_FORMFIELDNAME;