Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions display/d.linegraph/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static void set_optimal_text_size(double text_width, double text_height,
{
D_text_size(text_width, text_height);
D_get_text_box(text, tt, tb, tl, tr);
while ((tt - tb) > YTIC_DIST) {
while ((*tt - *tb) > YTIC_DIST) {
text_width *= 0.75;
text_height *= 0.75;
D_text_size(text_width, text_height);
Expand Down Expand Up @@ -501,7 +501,7 @@ int main(int argc, char **argv)
&rgb_b);

if (ret == 0)
G_fatal_error(_("Color <%s> cannot for option %s be parsed"),
G_fatal_error(_("Color <%s> for option <%s> cannot be parsed"),
point_color2_opt->answer, point_color2_opt->key);
else if (ret == 2)
secondary_color.a = RGBA_COLOR_TRANSPARENT;
Expand Down Expand Up @@ -595,7 +595,7 @@ int main(int argc, char **argv)
}
}
else if (num_y_files != i)
G_fatal_error(_("Number of widths (%d) is lower then"
G_fatal_error(_("Number of widths (%d) is lower than"
" the number of files (%d)"),
i, num_y_files);
}
Expand Down Expand Up @@ -982,7 +982,7 @@ int main(int argc, char **argv)
/* draw a tic-mark number */

if (scale_y_labels)
snprintf(txt, sizeof(txt), "%f.0",
snprintf(txt, sizeof(txt), "%.0f",
(i / tic_unit * y_scale));
else
snprintf(txt, sizeof(txt), "%d", (i / tic_unit));
Expand Down
Loading