Skip to content

Commit

Permalink
Fixed typos...
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Lime authored and Stephen Lime committed May 11, 2012
1 parent 75c46ea commit fcda217
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mapscript/swiginc/class.i
Expand Up @@ -182,17 +182,17 @@

%newobject getLabel;
labelObj *getLabel(int i) {
if (i >= 0 && i < self->labels) {
if (i >= 0 && i < self->numlabels) {
MS_REFCNT_INCR(self->labels[i]);
return self->labels[i];
} else {
msSetError(MS_CHILDERR, "Invalid index: %d.", "getStyle()", i);
msSetError(MS_CHILDERR, "Invalid index: %d.", "getLabel()", i);
return NULL;
}
}

int addLabel(labelObj *label) {
return msAddLabelToClass(self, label):
return msAddLabelToClass(self, label);
}

%newobject removeLabel;
Expand Down

0 comments on commit fcda217

Please sign in to comment.