summaryrefslogtreecommitdiff
path: root/src/GipfelWidget.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-27 10:20:46 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-27 10:20:46 +0100
commit7706e347215a26fa40b8fd086cea8d34b10001b3 (patch)
tree07fb27ca0265249e80c4a6f861d027994b0f41d0 /src/GipfelWidget.cxx
parent1e931fc5ca3a378fcf8eb42837ee1912c10a165a (diff)
more int->bool
Diffstat (limited to 'src/GipfelWidget.cxx')
-rw-r--r--src/GipfelWidget.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 9fc56d6..2ed55c1 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -43,8 +43,8 @@ GipfelWidget::GipfelWidget(int X,int Y,int W, int H): Fl_Group(X, Y, W, H) {
known_hills = new Hills();
img_file = NULL;
track_width = 200.0;
- show_hidden = 0;
- have_gipfel_info = 0;
+ show_hidden = false;
+ have_gipfel_info = false;
md = new ImageMetaData();
track_points = NULL;
fl_register_images();
@@ -83,11 +83,11 @@ GipfelWidget::load_image(char *file) {
set_view_height(md->height());
projection((ProjectionLSQ::Projection_t) md->projection_type());
- have_gipfel_info = 1;
+ have_gipfel_info = true;
direction = md->direction();
if (isnan(direction)) {
set_center_angle(0.0);
- have_gipfel_info = 0;
+ have_gipfel_info = false;
} else {
set_center_angle(direction);
}
@@ -95,7 +95,7 @@ GipfelWidget::load_image(char *file) {
nick = md->nick();
if (isnan(nick)) {
set_nick_angle(0.0);
- have_gipfel_info = 0;
+ have_gipfel_info = false;
} else {
set_nick_angle(nick);
}
@@ -103,7 +103,7 @@ GipfelWidget::load_image(char *file) {
tilt = md->tilt();
if (isnan(tilt)) {
set_tilt_angle(0.0);
- have_gipfel_info = 0;
+ have_gipfel_info = false;
} else {
set_tilt_angle(tilt);
}
@@ -111,7 +111,7 @@ GipfelWidget::load_image(char *file) {
fl = md->focal_length_35mm();
if (isnan(fl) || fl == 0.0) {
set_focal_length_35mm(35.0);
- have_gipfel_info = 0;
+ have_gipfel_info = false;
} else {
set_focal_length_35mm(fl);
}
@@ -544,7 +544,7 @@ GipfelWidget::set_hide_value(double h) {
}
void
-GipfelWidget::set_show_hidden(int h) {
+GipfelWidget::set_show_hidden(bool h) {
show_hidden = h;
set_labels(pan->get_visible_mountains());
redraw();