https://bugs.freedesktop.org/show_bug.cgi?id=87044

--- Comment #6 from Julien Nabet <serval2...@yahoo.fr> ---
About the crash, just before I've got:
(gdb) p aPropertyStates
$1 = std::__debug::vector of length 74, capacity 74 = {{mnIndex = 0, maValue =
uno::Any 20100}, {mnIndex = 1, maValue = uno::Any -1}, etc.

After, I've got:
length 75, capacity 148 = {{mnIndex = 0, maValue = uno::Any 20100},...
{mnIndex = 0, maValue = uno::Any "N20100"}} !

This last one comes from this block:
   1221         if ( (_xParentFormattedField.is() || xFormattedField.is()) &&
!aPropertyStates.empty() )
   1222         {
   1223             sal_Int32 nNumberFormat = 0;
   1224             if ( _xParentFormattedField.is() )
   1225                 nNumberFormat = _xParentFormattedField->getFormatKey();
   1226             else
   1227                 nNumberFormat = xFormattedField->getFormatKey();
   1228             {
   1229                 sal_Int32 nStyleMapIndex =
m_xCellStylesExportPropertySetMapper->getPropertySetMapper()->FindEntryIndex(
CTF_RPT_NUMBERFORMAT );
   1230                 addDataStyle(nNumberFormat);
   1231                 XMLPropertyState aNumberStyleState( nStyleMapIndex,
uno::makeAny( getDataStyleName(nNumberFormat) ) );
   1232                 aPropertyStates.push_back( aNumberStyleState );
   1233             }
   1234         }
see
http://opengrok.libreoffice.org/xref/core/reportdesign/source/filter/xml/xmlExport.cxx#1221
So is the index wrong? Or should the last value replace the old value? Or
should we test if index 0 still there and so we don't go in this block?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to