From b4eb6324aaa0d2704a2d809381c616b365783ea0 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 4 Mar 2002 01:05:59 +0000 Subject: [PATCH] Patch from Jim Wilson: Property sort now leaves "." and ".." at top of subdirectory list in their expected sequence. --- src/GUI/prop_picker.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/GUI/prop_picker.cxx b/src/GUI/prop_picker.cxx index 383581310..a7e5c6c07 100755 --- a/src/GUI/prop_picker.cxx +++ b/src/GUI/prop_picker.cxx @@ -501,10 +501,13 @@ void fgPropPicker::find_props () files [ num_files ] = NULL ; + // leave the . and .. alone... + int ii = ( strcmp(files [0], "." ) == 0 ) ? 2 : 0; + // Sort the entries. This is a simple N^2 extraction sort. More // elaborate algorithms aren't necessary for the few dozen // properties we're going to sort. - for(i=0; i