summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/filter/html/htmlexp.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/filter/html/htmlexp.cxx b/sc/source/filter/html/htmlexp.cxx
index 772b72b72..34e994bbd 100644
--- a/sc/source/filter/html/htmlexp.cxx
+++ b/sc/source/filter/html/htmlexp.cxx
@@ -829,11 +829,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
}