resolved fdo#45032 Calc export to HTML with graphics failed

Fixed a misconception in transition from List to to ptr_vector of commit
db599f64e6, List::Next() returned NULL when at
end of list, mimic that.
This commit is contained in:
Eike Rathke 2012-01-22 20:13:36 +01:00
parent 7afa76599c
commit d180de79b8

View file

@ -876,11 +876,14 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
size_t ListSize = aGraphList.size();
for ( size_t i = 0; i < ListSize; ++i )
{
pGraphEntry = &aGraphList[ i ];
if ( pGraphEntry->bInCell && pGraphEntry->aRange.In( aPos ) )
ScHTMLGraphEntry* pE = &aGraphList[ i ];
if ( pE->bInCell && pE->aRange.In( aPos ) )
{
if ( pGraphEntry->aRange.aStart == aPos )
if ( pE->aRange.aStart == aPos )
{
pGraphEntry = pE;
break; // for
}
else
return ; // ist ein Col/RowSpan, Overlapped
}