Skip to content
Permalink
Browse files
Add setSymbolByName test (#5937)
* 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 55a653d3164ed86fca51b4f6832c879925840191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
@@ -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
@@ -962,6 +962,7 @@ extern "C" {
%immutable;
#endif /* SWIG */
int refcount;
char *symbolname;
#ifdef SWIG
%mutable;
#endif /* SWIG */
@@ -989,8 +990,6 @@ extern "C" {
int rangeitemindex;

int symbol;
char *symbolname;

double size;
double minsize, maxsize;

0 comments on commit 55a653d

Please sign in to comment.