Patch from Melchior Franz:
- don't show redundant indices
This commit is contained in:
parent
7b01a143a1
commit
fb5d5960a9
1 changed files with 6 additions and 3 deletions
|
@ -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() ) ;
|
||||||
|
if ( node->getChild(name, 1) != 0 ) {
|
||||||
strcat ( files [ pi ], "[" ) ;
|
strcat ( files [ pi ], "[" ) ;
|
||||||
strcat ( files [ pi ], sindex ) ;
|
strcat ( files [ pi ], sindex ) ;
|
||||||
strcat ( files [ pi ], "]/" ) ;
|
strcat ( files [ pi ], "]" ) ;
|
||||||
|
}
|
||||||
|
strcat ( files [ pi ], "/" ) ;
|
||||||
values[ pi ] = new char[ 2 ] ;
|
values[ pi ] = new char[ 2 ] ;
|
||||||
} else {
|
} else {
|
||||||
dflag[ pi ] = 0 ;
|
dflag[ pi ] = 0 ;
|
||||||
|
|
Loading…
Reference in a new issue