Skip to content

Commit

Permalink
d.legend.vect: Reduce scope of 'bg_w' variable in draw.c (OSGeo#3980)
Browse files Browse the repository at this point in the history
Reduce scope of 'bg_w' variable in d.legend.vect/draw.c

Co-authored-by: Shubham Vasudeo Desai <[email protected]>
  • Loading branch information
ShubhamDesai and Shubham Vasudeo Desai authored Jul 4, 2024
1 parent 66c4df0 commit 79726a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions display/d.legend.vect/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void draw(char *file_name, double LL, double LT, char *title, int cols,
double symb_h, symb_w, def_symb_h, def_symb_w;
int item_count, item;
double it_per_col;
double margin, bg_h, bg_w;
double margin, bg_h;
char **tokens;

D_get_src(&dt, &db, &dl, &dr);
Expand Down Expand Up @@ -264,7 +264,7 @@ void draw(char *file_name, double LL, double LT, char *title, int cols,
/* Draw background */
if (do_bg) {
double x0bg, y0bg, x1bg, y1bg;

double bg_w;
if (title_w > offs_x + maxlblw)
bg_w = title_w;
else
Expand Down

0 comments on commit 79726a0

Please sign in to comment.