Re: [PATCH] convert tools/table.hxx to std::map in ScEEParser class in SC module

2012-03-14 Thread Noel Grandin
Hi Updated patch attached. Thanks, Noel Grandin On 2012-03-12 14:33, Ivan Timofeev wrote: Hi Noel, for ( SCCOL nCol = nStartCol; nCol <= nEndCol; nCol++ ) { - sal_uInt16 nWidth = (sal_uInt16)(sal_uLong) pColWidths->Get( nCol ); + sal_uInt16 nWidth = 0; + if ( rColWidths.find( nCol )

Re: [PATCH] convert tools/table.hxx to std::map in ScEEParser class in SC module

2012-03-12 Thread Ivan Timofeev
Hi Noel, for ( SCCOL nCol = nStartCol; nCol <= nEndCol; nCol++ ) { - sal_uInt16 nWidth = (sal_uInt16)(sal_uLong) pColWidths->Get( nCol ); + sal_uInt16 nWidth = 0; + if ( rColWidths.find( nCol ) != rColWidths.end() ) + nWidth = rColWidths[ nCol ]; so this code performs a search twi