diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-10 21:01:25 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-11-10 21:01:25 +0100 |
commit | 26b883b3a92f67d152d7a3752d87c369f942f743 (patch) | |
tree | 50be41369db86ad5689cf5e14722e66b3f182404 | |
parent | 72d1785d3854304d2b41b6d64b82768141d9f30d (diff) |
sanitize track_width values
-rw-r--r-- | src/GipfelWidget.cxx | 2 | ||||
-rw-r--r-- | src/gipfel.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
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); |