[Libreoffice-commits] .: writerfilter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Mon Feb 13 02:05:14 PST 2012


 writerfilter/source/rtftok/rtfdocumentimpl.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 492dbf9ceceea81edeb5d6c8d94aeed09e738176
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Mon Feb 13 11:04:32 2012 +0100

    fix RTF import of ffres token for checkboxes

diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index a3a9e73..8f3f311 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:


More information about the Libreoffice-commits mailing list