diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-27 22:45:57 +0200 | 
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-27 22:45:57 +0200 | 
| commit | 6d30161267322a0bae3be248a9b44160fd91b486 (patch) | |
| tree | 243a1c9d2121e0ef1fa140d33f421065a701da86 /src/gipfel.cxx | |
| parent | 8d7e0aaa20dff413fdc9747b842015664dae6cac (diff) | |
| parent | f716b3111ee6ea482449c54829acf82fbf6495fc (diff) | |
Merge branches
Diffstat (limited to 'src/gipfel.cxx')
| -rw-r--r-- | src/gipfel.cxx | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 221bcec..37eaaf4 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -32,8 +32,6 @@  #include <errno.h>  #include <signal.h> -#include "../config.h" -  #include <FL/Fl.H>  #include <FL/Fl_Window.H>  #include <FL/Fl_Scroll.H> @@ -329,7 +327,6 @@ int main(int argc, char** argv) {      exit(1);    } -fprintf(stderr, "%s\n", data_file);    control_win = create_control_window();    view_win = new Fl_Window(800, 600); @@ -343,9 +340,6 @@ fprintf(stderr, "%s\n", data_file);    }    gipf->load_data(data_file); -  if (view_point) { -    gipf->set_viewpoint(view_point); -  }    scroll->end();      set_values(); @@ -355,6 +349,12 @@ fprintf(stderr, "%s\n", data_file);    view_win->end();    view_win->show(1, argv);     control_win->show(1, argv);  + +  if (view_point) { +    gipf->set_viewpoint(view_point); +  } else if (gipf->get_view_lat() == 0.0 && gipf->get_view_long() == 0.0) { +    viewpoint_cb(NULL, NULL); +  }    return Fl::run();  } | 
