diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-15 12:25:42 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2005-08-15 12:25:42 +0100 |
commit | f716b3111ee6ea482449c54829acf82fbf6495fc (patch) | |
tree | 556f30548e9da237b4d20fdce8ba3313c2eb352b /src | |
parent | ab1525fe2636193e4365bb64a75ea7a6e812aab8 (diff) |
popup "choose viewpoint" window, if no viewpoint is given
Diffstat (limited to 'src')
-rw-r--r-- | src/gipfel.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 8d7d98a..37eaaf4 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -340,9 +340,6 @@ int main(int argc, char** argv) { } gipf->load_data(data_file); - if (view_point) { - gipf->set_viewpoint(view_point); - } scroll->end(); set_values(); @@ -352,6 +349,12 @@ int main(int argc, char** argv) { 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(); } |