[Libreoffice-commits] core.git: writerfilter/source

Michael Stahl mstahl at redhat.com
Fri Jan 15 05:13:19 PST 2016


 writerfilter/source/rtftok/rtfdocumentimpl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 819bb719406afda8ecac6f43ff9069452b887490
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Jan 15 11:58:42 2016 +0100

    writerfilter: coverity#1348470 missing break
    
    Change-Id: I1cc56792e3684bd85ecbd5e0cf9c730a5f75beb5

diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 9bd58a7..0d6cd61 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -3498,7 +3498,7 @@ RTFError RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
         m_aStates.top().aTableSprms.set(NS_ooxml::LN_CT_Lvl_numFmt, std::make_shared<RTFValue>(23)); // bullets, same as \levelnfc23
     }
     break;
-    case RTF_LANDSCAPE:
+    case RTF_LANDSCAPE: // fall through: set the default + current value
     {
         auto pValue = std::make_shared<RTFValue>(NS_ooxml::LN_Value_ST_PageOrientation_landscape);
         lcl_putNestedAttribute(m_aDefaultState.aSectionSprms,


More information about the Libreoffice-commits mailing list