diff options
Diffstat (limited to 'sc/source/filter/excel/xeview.cxx')
-rw-r--r-- | sc/source/filter/excel/xeview.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xeview.cxx b/sc/source/filter/excel/xeview.cxx index 550c9ed71f86..153ee4f2612c 100644 --- a/sc/source/filter/excel/xeview.cxx +++ b/sc/source/filter/excel/xeview.cxx @@ -209,8 +209,11 @@ XclExpSelection::XclExpSelection( const XclTabViewData& rData, sal_uInt8 nPane ) XclRangeList& rXclSel = maSelData.maXclSelection; bool bFound = false; for( XclRangeVector::const_iterator aIt = rXclSel.begin(), aEnd = rXclSel.end(); !bFound && (aIt != aEnd); ++aIt ) - if( (bFound = aIt->Contains( maSelData.maXclCursor )) ) + { + bFound = aIt->Contains( maSelData.maXclCursor ); + if( bFound ) maSelData.mnCursorIdx = static_cast< sal_uInt16 >( aIt - rXclSel.begin() ); + } /* Cursor cell not found in list? (e.g. inactive pane, or removed in ConvertRangeList(), because Calc cursor on invalid pos) -> insert the valid Excel cursor. */ |