Summary: | [SECTStudio-Classifier] Demote Button does not work | ||
---|---|---|---|
Product: | MapLab | Reporter: | Chris Thorne <cthorne@dmsolutions.ca> |
Component: | SECT (Studio) | Assignee: | maplab-dev <maplab-dev@lists.maptools.org> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Zak: you took this one, but I found the problem (same issue in the symbolizer) ... I won't fix it because you may have found it already, but the issue is in the test $nSelectedClass != null && $nSelectedClass > 0 && $nSelectedClass < $oLayer->numclasses - 1 this should read $nSelectedClass !== null && $nSelectedClass >= 0 && $nSelectedClass < $oLayer->numclasses - 1 Note the double equals on the first condition, null is the same as 0 unless you ask for 'exactly equals' ... so fixing the second condition doesn't work because the first class (0) will fail on the first test until you make this change.