Skip to content

Commit

Permalink
Add setSymbolByName test (#5937)
Browse files Browse the repository at this point in the history
* Add setSymbolByName test

* Add symbolname property immutable

* Remove old symbolname
  • Loading branch information
geographika authored and rouault committed Dec 2, 2019
1 parent e23d874 commit 55a653d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mapscript/python/tests/cases/style_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def testAppendNewStyle(self):
assert class0.numstyles == 2, class0.numstyles
new_style = mapscript.styleObj()
new_style.color.setRGB(0, 0, 0)
new_style.symbol = 1
new_style.setSymbolByName(self.map, 'circle')
new_style.size = 3
index = class0.insertStyle(new_style)
assert index == 2, index
Expand Down
3 changes: 1 addition & 2 deletions mapserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,7 @@ extern "C" {
%immutable;
#endif /* SWIG */
int refcount;
char *symbolname;
#ifdef SWIG
%mutable;
#endif /* SWIG */
Expand Down Expand Up @@ -989,8 +990,6 @@ extern "C" {
int rangeitemindex;

int symbol;
char *symbolname;

double size;
double minsize, maxsize;

Expand Down

0 comments on commit 55a653d

Please sign in to comment.