diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2012-02-13 11:04:32 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2012-02-13 11:05:14 +0100 |
commit | 492dbf9ceceea81edeb5d6c8d94aeed09e738176 (patch) | |
tree | c6d7e6426501d9aa7945eda0bcd52e7dfc938933 | |
parent | 758cceaff4c8038c5ec5115aaa593d46483d6626 (diff) |
fix RTF import of ffres token for checkboxes
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index a3a9e7301699..8f3f31121a1b 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -2525,7 +2525,9 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) m_aFormfieldSprms->push_back(make_pair(NS_ooxml::LN_CT_FFDDList_default, pIntValue)); break; case RTF_FFRES: - if (m_nFormFieldType == FORMFIELD_LIST) + if (m_nFormFieldType == FORMFIELD_CHECKBOX) + m_aFormfieldSprms->push_back(make_pair(NS_ooxml::LN_CT_FFCheckBox_checked, pIntValue)); + else if (m_nFormFieldType == FORMFIELD_LIST) m_aFormfieldSprms->push_back(make_pair(NS_ooxml::LN_CT_FFDDList_result, pIntValue)); break; case RTF_EDMINS: |