1
0
Fork 0

Patch from Melchior Franz:

- don't show redundant indices
This commit is contained in:
david 2002-02-06 16:53:01 +00:00
parent 7b01a143a1
commit fb5d5960a9

View file

@ -479,9 +479,12 @@ void fgPropPicker::find_props ()
dflag[ pi ] = 1 ; dflag[ pi ] = 1 ;
files[ pi ] = new char[ strlen(line.c_str())+strlen(sindex)+4 ] ; files[ pi ] = new char[ strlen(line.c_str())+strlen(sindex)+4 ] ;
strcpy ( files [ pi ], line.c_str() ) ; strcpy ( files [ pi ], line.c_str() ) ;
strcat ( files [ pi ], "[" ) ; if ( node->getChild(name, 1) != 0 ) {
strcat ( files [ pi ], sindex ) ; strcat ( files [ pi ], "[" ) ;
strcat ( files [ pi ], "]/" ) ; strcat ( files [ pi ], sindex ) ;
strcat ( files [ pi ], "]" ) ;
}
strcat ( files [ pi ], "/" ) ;
values[ pi ] = new char[ 2 ] ; values[ pi ] = new char[ 2 ] ;
} else { } else {
dflag[ pi ] = 0 ; dflag[ pi ] = 0 ;