Skip to content
Permalink
Browse files
Make numlabels and labelLeaderObj immutable
  • Loading branch information
geographika committed Nov 30, 2019
1 parent ef4c443 commit 17124407c69cc7c5e447304dfc88e9e033c5d17b
Showing 1 changed file with 3 additions and 4 deletions.
@@ -1195,6 +1195,7 @@ typedef struct labelObj labelObj;
%immutable;
#endif
int numstyles;
int numlabels;
#ifdef SWIG
%mutable;
#endif
@@ -1203,10 +1204,8 @@ typedef struct labelObj labelObj;
labelObj **labels;
int maxlabels;
#endif
int numlabels; /* should be immutable */

char *name; /* should be unique within a layer */
char *title; /* used for legend labeling */
char *title; /* used for legend labelling */

#ifndef SWIG
expressionObj text;
@@ -1234,6 +1233,7 @@ typedef struct labelObj labelObj;
#endif /* SWIG */
int refcount;
struct layerObj *layer;
labelLeaderObj *leader;
#ifdef SWIG
%mutable;
#endif /* SWIG */
@@ -1242,7 +1242,6 @@ typedef struct labelObj labelObj;
char *keyimage;

char *group;
labelLeaderObj *leader;
};

/************************************************************************/

0 comments on commit 1712440

Please sign in to comment.