Skip to content

Commit

Permalink
imagery lib
Browse files Browse the repository at this point in the history
support fully qualified group names
  • Loading branch information
metzm committed Aug 25, 2020
1 parent fe05138 commit dfe511f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/imagery/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,16 @@ static int get_ref(const char *group, const char *subgroup, const char *gmapset,
int n;
char buf[1024];
char name[INAME_LEN], mapset[INAME_LEN];
char xname[GNAME_MAX], xmapset[GMAPSET_MAX];
char color[20];
FILE *fd;

I_init_group_ref(ref);


G_unqualified_name(group, gmapset, xname, xmapset);
group = xname;
gmapset = xmapset;

if (gmapset == NULL || *gmapset == 0)
gmapset = G_mapset();

Expand Down

0 comments on commit dfe511f

Please sign in to comment.