summaryrefslogtreecommitdiff
path: root/src/gipfel.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2013-10-11 20:08:53 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2013-10-11 20:08:53 +0200
commit726ab3d3492c481af3f612f525231ba18dddf7a6 (patch)
treefee23369af515417639a4c406435efa628f6d46c /src/gipfel.cxx
parenta1957ae738e07e76b48f1d9e77fbd884ec3c9c84 (diff)
call comp_params() automatically on release when more than 1 hill is marked
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r--src/gipfel.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index a780a43..f3775b0 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -630,7 +630,7 @@ int main(int argc, char** argv) {
view_win->resizable(g);
scroll = new Fl_Scroll(0, 0, view_win->w(), view_win->h());
- gipf = new GipfelWidget(0, 0, 800, 600);
+ gipf = new GipfelWidget(0, 0, 800, 600, set_values);
if (img_file) {
gipf->load_image(img_file);
view_win->label(img_file);
@@ -716,7 +716,7 @@ export_hills(const char *export_file, double visibility) {
return 1;
}
- gipf = new GipfelWidget(0,0,800,600);
+ gipf = new GipfelWidget(0,0,800,600, NULL);
gipf->load_image(img_file);
gipf->load_data(data_file);
gipf->set_height_dist_ratio(visibility);