[Libreoffice-commits] .: writerfilter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Oct 28 16:07:50 PDT 2011


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

New commits:
commit 2a5e99cb83a91e9a4bb92c117dcbc8baa6d718fe
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Sat Oct 29 01:06:33 2011 +0200

    RTF_FFRES should be parsed for list fields only
    
    See spec v1.9.1, page 198.

diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index f7dcef4..e17b4b5 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -2419,9 +2419,7 @@ 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_CHECKBOX)
-                m_aFormfieldSprms->push_back(make_pair(NS_ooxml::LN_CT_FFCheckBox_checked, pIntValue));
-            else if (m_nFormFieldType == FORMFIELD_LIST)
+            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