Change-Id: I6fa871a438b7ecf7bc07151209bd3aa1d1f4142b
auto indexInParent = static_cast< int32_t >( self->GetIndexInParent() );
bool isSelectedInParent = false;
bool hasCheckBoxChild = false;
- int32_t firstSelectedChildIndex = 0;
+ int32_t firstSelectedChildIndex = -1;
int32_t selectedChildCount = 0;
for( auto i = 0u; i < static_cast< size_t >( childCount ); ++i )
auto s = q->GetStates();
if( s[State::SELECTABLE] )
{
- ++selectedChildCount;
if( s[State::SELECTED] )
{
+ ++selectedChildCount;
if( firstSelectedChildIndex < 0 )
firstSelectedChildIndex = static_cast< int32_t >( i );
}