Kaydet (Commit) 531b11d9 authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Kohei Yoshida

resolved fdo#45032 Calc export to HTML with graphics failed

Fixed a misconception in transition from List to to ptr_vector of commit
db599f64, List::Next() returned NULL when at
end of list, mimic that.
Signed-off-by: 's avatarKohei Yoshida <kohei.yoshida@suse.com>
üst 48c33e89
...@@ -883,11 +883,14 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab ) ...@@ -883,11 +883,14 @@ void ScHTMLExport::WriteCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
size_t ListSize = aGraphList.size(); size_t ListSize = aGraphList.size();
for ( size_t i = 0; i < ListSize; ++i ) for ( size_t i = 0; i < ListSize; ++i )
{ {
pGraphEntry = &aGraphList[ i ]; ScHTMLGraphEntry* pE = &aGraphList[ i ];
if ( pGraphEntry->bInCell && pGraphEntry->aRange.In( aPos ) ) if ( pE->bInCell && pE->aRange.In( aPos ) )
{
if ( pE->aRange.aStart == aPos )
{ {
if ( pGraphEntry->aRange.aStart == aPos ) pGraphEntry = pE;
break; // for break; // for
}
else else
return ; // ist ein Col/RowSpan, Overlapped return ; // ist ein Col/RowSpan, Overlapped
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment