mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
print.c: show_dive_header() Reserve more space for strings
Increase the size of "buffer" to 160 bytes. This was causing a problem with the first call to pango_layout_text(), where for the "bg_BG" locale, not enought space was allocated for the month name, the translation of "dive" and the other values. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
30466b9abb
commit
67604ccae3
1 changed files with 1 additions and 1 deletions
2
print.c
2
print.c
|
@ -62,7 +62,7 @@ static void show_dive_header(struct dive *dive, cairo_t *cr, double w,
|
|||
int len, decimals, width, height, maxwidth, maxheight;
|
||||
PangoLayout *layout;
|
||||
struct tm tm;
|
||||
char buffer[80], divenr[20], *people;
|
||||
char buffer[160], divenr[20], *people;
|
||||
|
||||
maxwidth = w * PANGO_SCALE;
|
||||
maxheight = h * PANGO_SCALE * 0.9;
|
||||
|
|
Loading…
Add table
Reference in a new issue