From fb5d5960a9b5baff925b91e8771ad92f43076b22 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 6 Feb 2002 16:53:01 +0000 Subject: [PATCH] Patch from Melchior Franz: - don't show redundant indices --- src/GUI/prop_picker.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/GUI/prop_picker.cxx b/src/GUI/prop_picker.cxx index 86ce0d734..e38342fd7 100755 --- a/src/GUI/prop_picker.cxx +++ b/src/GUI/prop_picker.cxx @@ -479,9 +479,12 @@ void fgPropPicker::find_props () dflag[ pi ] = 1 ; files[ pi ] = new char[ strlen(line.c_str())+strlen(sindex)+4 ] ; strcpy ( files [ pi ], line.c_str() ) ; - strcat ( files [ pi ], "[" ) ; - strcat ( files [ pi ], sindex ) ; - strcat ( files [ pi ], "]/" ) ; + if ( node->getChild(name, 1) != 0 ) { + strcat ( files [ pi ], "[" ) ; + strcat ( files [ pi ], sindex ) ; + strcat ( files [ pi ], "]" ) ; + } + strcat ( files [ pi ], "/" ) ; values[ pi ] = new char[ 2 ] ; } else { dflag[ pi ] = 0 ; -- 2.39.5