From 726ab3d3492c481af3f612f525231ba18dddf7a6 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Fri, 11 Oct 2013 20:08:53 +0200 Subject: call comp_params() automatically on release when more than 1 hill is marked --- src/gipfel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gipfel.cxx') 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); -- cgit v1.2.3