Kaydet (Commit) 89d3de59 authored tarafından Luboš Luňák's avatar Luboš Luňák

match if-else properly (warnings are actually sometimes useful, huh)

üst 66ff55f8
......@@ -2634,9 +2634,11 @@ void XclImpListBoxObj::DoProcessControl( ScfPropertySet& rPropSet ) const
// multi selection: API expects sequence of list entry indexes
if( bMultiSel )
{
for( ScfUInt8Vec::const_iterator aBeg = maSelection.begin(), aIt = aBeg, aEnd = maSelection.end(); aIt != aEnd; ++aIt )
if( *aIt != 0 )
aSelVec.push_back( static_cast< sal_Int16 >( aIt - aBeg ) );
}
// single selection: mnSelEntry is one-based, API expects zero-based
else if( mnSelEntry > 0 )
aSelVec.push_back( static_cast< sal_Int16 >( mnSelEntry - 1 ) );
......
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