]> git.mxchange.org Git - flightgear.git/commitdiff
Jim Wilson:
authorcurt <curt>
Fri, 19 Apr 2002 15:36:51 +0000 (15:36 +0000)
committercurt <curt>
Fri, 19 Apr 2002 15:36:51 +0000 (15:36 +0000)
Fix a scrolling problem where last item doesn't show in prop_picker.
Removed include for unreferenced header in viewmgr.

Thanks
src/GUI/prop_picker.cxx
src/Main/viewmgr.cxx

diff --git a/Thanks b/Thanks
index 127255eaa31f0ccd11c9022165ca09a81b8ea04b..33189174bc204ce4821a33b22249fdb64af3df12 100644 (file)
--- a/Thanks
+++ b/Thanks
@@ -454,6 +454,8 @@ Ed Williams <Ed_Williams@compuserve.com>
 Jim Wilson <jimw@kelcomaine.com>
   Wrote a major overhaul of the viewer code to make it more flexible 
   and modular.  Contributed many small fixes and bug reports.
+  Contributed the the pui property browser.
+  Contributed to the autopilot.
 
 
 Jean-Claude Wippler <jcw@equi4.com>
index 13724ee6cae8f484e089d1b9c8120416ec9d539b..dbb99615b97d6eba237682496d91aed848114035 100755 (executable)
@@ -530,8 +530,8 @@ void fgPropPicker::find_props ()
 
   // if non-empty list, adjust the size of the slider...
   if (num_files > 1) {
-    if ((11.0f/(num_files-1)) < 1) {
-      slider->setSliderFraction (11.0f/(num_files-1)) ;
+    if ((11.0f/(num_files)) < 1) {
+      slider->setSliderFraction (11.0f/(num_files)) ;
       slider->reveal();
       up_arrow->reveal();
       down_arrow->reveal();
@@ -607,5 +607,3 @@ fgPropEdit::fgPropEdit ( char *name, char *value, char *proppath ) : puDialogBox
         
     FG_FINALIZE_PUI_DIALOG( this );
 }
-
-
index 56bd8ed5436f78ae0afeb711288a9e20ae8b15b6..9caf8b843bcaac4ff6a08c83949a1ee9ccea153a 100644 (file)
@@ -25,8 +25,6 @@
 
 #include <plib/sg.h>
 
-#include <GUI/sgVec3Slider.hxx>        // FIXME: this should NOT be needed
-
 #include "viewmgr.hxx"
 #include "fg_props.hxx"