summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <johannes.hofmann@gmx.de>2005-05-10 16:45:29 +0000
committerJohannes Hofmann <johannes.hofmann@gmx.de>2005-05-10 16:45:29 +0000
commit59535eb31b258ef2f7b23648e3602c2424b8a34c (patch)
tree0bcbd53f8724218aceaeeb2939162ebf013721ef /src
parent468702cc832af1007f7e43fd38a87ae89599953b (diff)
set labels initially
set labels initially
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx12
-rw-r--r--src/Panorama.cxx2
2 files changed, 10 insertions, 4 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 527491b..e38e5b9 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: GipfelWidget.cxx,v 1.28 2005/05/10 17:57:11 hofmann Exp $"
+// "$Id: GipfelWidget.cxx,v 1.29 2005/05/10 18:45:29 hofmann Exp $"
//
// GipfelWidget routines.
//
@@ -84,12 +84,18 @@ GipfelWidget::load_image(const char *file) {
int
GipfelWidget::load_data(const char *file) {
- return pan->load_file(file);
+ int r;
+ r = pan->load_file(file);
+ return r;
}
int
GipfelWidget::set_viewpoint(const char *pos) {
- return pan->set_viewpoint(pos);
+ int r;
+
+ r = pan->set_viewpoint(pos);
+ set_labels(pan->get_visible_mountains());
+ return r;
}
static void
diff --git a/src/Panorama.cxx b/src/Panorama.cxx
index 4404166..7321c3a 100644
--- a/src/Panorama.cxx
+++ b/src/Panorama.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Panorama.cxx,v 1.41 2005/05/10 18:33:40 hofmann Exp $"
+// "$Id: Panorama.cxx,v 1.42 2005/05/10 18:45:29 hofmann Exp $"
//
// Panorama routines.
//