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

Caolán McNamara caolanm at redhat.com
Thu May 11 16:27:19 UTC 2017


 sd/source/ui/table/TableDesignPane.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 9905eb90b3bfe9e7281642b7915db177c5143ff0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu May 11 15:59:39 2017 +0100

    coverity#1399034 Unrecoverable parse warning
    
    have another guess as fixing
    
        emit.cpp:1472: assertion failure: emit-ast.cpp:1123: assertion failed: Ran out of fields in aggregate initializer
    
    Change-Id: I814c12c350cd1dbd58c25ada3a376477b5809c06

diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx
index a1356f40d83e..5dccf80c63cd 100644
--- a/sd/source/ui/table/TableDesignPane.cxx
+++ b/sd/source/ui/table/TableDesignPane.cxx
@@ -110,7 +110,11 @@ TableDesignWidget::TableDesignWidget( VclBuilderContainer* pParent, ViewShellBas
 
     for (sal_uInt16 i = CB_HEADER_ROW; i <= CB_BANDED_COLUMNS; ++i)
     {
+#if defined(__COVERITY__)
+        pParent->get(m_aCheckBoxes[i], OUStringToOString(gPropNames[i], RTL_TEXTENCODING_ASCII_US));
+#else
         pParent->get(m_aCheckBoxes[i], OString(gPropNames[i].data, gPropNames[i].size));
+#endif
         m_aCheckBoxes[i]->SetClickHdl( LINK( this, TableDesignWidget, implCheckBoxHdl ) );
     }
 


More information about the Libreoffice-commits mailing list