From 26b883b3a92f67d152d7a3752d87c369f942f743 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 10 Nov 2005 21:01:25 +0100 Subject: sanitize track_width values --- src/GipfelWidget.cxx | 2 +- src/gipfel.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index df07113..7e8cf64 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -66,7 +66,7 @@ GipfelWidget::GipfelWidget(int X,int Y,int W, int H): Fl_Widget(X, Y, W, H) { m1 = NULL; m2 = NULL; img_file = NULL; - track_width = 500.0; + track_width = 200.0; show_hidden = 0; for (i=0; i<=3; i++) { diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 2e7f63f..14f4418 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -263,7 +263,8 @@ create_control_window() { s_track_width->box(FL_THIN_DOWN_BOX); s_track_width->labelsize(10); s_track_width->step(1.0); - s_track_width->bounds(1.0, 2000.0); + s_track_width->bounds(1.0, 500.0); + s_track_width->value(200.0); s_track_width->slider(FL_UP_BOX); s_track_width->callback((Fl_Callback*)track_width_cb); s_track_width->align(FL_ALIGN_TOP); -- cgit v1.2.3