summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 12:47:31 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-03-29 12:47:31 +0200
commit9bceb553121f7ca130223b59ab6fc243ec850038 (patch)
treead20734f39b39700eff19a7fe796d3c451e421c0 /src
parent73e6a060b0e7a7eb4f96448941282e3c7fbaeee0 (diff)
style
Diffstat (limited to 'src')
-rw-r--r--src/GipfelWidget.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx
index 444aea7..1185f36 100644
--- a/src/GipfelWidget.cxx
+++ b/src/GipfelWidget.cxx
@@ -337,7 +337,7 @@ overlap(double m1, double n1, double m2, double n2) {
void
GipfelWidget::set_labels(Hills *v) {
- int width, height;
+ int height;
fl_font(FL_HELVETICA, 8);
height = fl_height();
@@ -351,9 +351,9 @@ GipfelWidget::set_labels(Hills *v) {
if (!show_hidden && (m->flags & Hill::HIDDEN))
continue;
- width = (int) ceilf(fl_width(m->name));
- m->label_x = width;
+ m->label_x = (int) fl_width(m->name) + 1;
m->label_y = 0;
+
for (int j = 0; j < i; j++) {
Hill *n = v->get(j);