From f1d8d554d08173dba7f13e6c2d3f373e1fa3ef48 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 19 Apr 2002 15:36:51 +0000 Subject: [PATCH] Jim Wilson: Fix a scrolling problem where last item doesn't show in prop_picker. Removed include for unreferenced header in viewmgr. --- Thanks | 2 ++ src/GUI/prop_picker.cxx | 6 ++---- src/Main/viewmgr.cxx | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Thanks b/Thanks index 127255eaa..33189174b 100644 --- a/Thanks +++ b/Thanks @@ -454,6 +454,8 @@ Ed Williams Jim Wilson 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 diff --git a/src/GUI/prop_picker.cxx b/src/GUI/prop_picker.cxx index 13724ee6c..dbb99615b 100755 --- a/src/GUI/prop_picker.cxx +++ b/src/GUI/prop_picker.cxx @@ -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 ); } - - diff --git a/src/Main/viewmgr.cxx b/src/Main/viewmgr.cxx index 56bd8ed54..9caf8b843 100644 --- a/src/Main/viewmgr.cxx +++ b/src/Main/viewmgr.cxx @@ -25,8 +25,6 @@ #include -#include // FIXME: this should NOT be needed - #include "viewmgr.hxx" #include "fg_props.hxx"