sc/source/filter/excel/xiescher.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 89d3de59abdd218750d78bbf80a6f07f7a13f31c Author: LuboÅ¡ LuÅák <l.lu...@suse.cz> Date: Sun Mar 18 08:02:08 2012 +0100 match if-else properly (warnings are actually sometimes useful, huh) diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index f049f25..6c8eb50 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -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 ) );
_______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits