[Git][debian-gis-team/mapserver][upstream] New upstream version 7.6.0~rc1

Bas Couwenberg gitlab at salsa.debian.org
Mon Apr 6 05:09:54 BST 2020



Bas Couwenberg pushed to branch upstream at Debian GIS Project / mapserver


Commits:
ed9c24bf by Bas Couwenberg at 2020-04-06T05:54:47+02:00
New upstream version 7.6.0~rc1
- - - - -


4 changed files:

- CMakeLists.txt
- HISTORY.TXT
- README.rst
- maputil.c


Changes:

=====================================
CMakeLists.txt
=====================================
@@ -18,7 +18,7 @@ include(CheckCSourceCompiles)
 set (MapServer_VERSION_MAJOR 7)
 set (MapServer_VERSION_MINOR 6)
 set (MapServer_VERSION_REVISION 0)
-set (MapServer_VERSION_SUFFIX "-beta2")
+set (MapServer_VERSION_SUFFIX "-rc1")
 
 # Set C++ version
 # Make CMAKE_CXX_STANDARD available as cache option overridable by user


=====================================
HISTORY.TXT
=====================================
@@ -12,6 +12,11 @@ For a complete change history, please see the Git log comments.  For more
 details about recent point releases, please see the online changelog at:
 http://mapserver.org/development/changelog/
 
+7.6.0-rc1 release (2020-04-05)
+------------------------------
+
+- Fix alpha value for hex colors (#6023)
+
 7.6.0-beta2 release (2020-03-28)
 --------------------------------
 


=====================================
README.rst
=====================================
@@ -17,7 +17,7 @@ applications can be enhanced using Java, JavaScript or many other web
 technologies. For more  information and complete documentation please 
 visit:
 
-  http://www.mapserver.org/
+  https://mapserver.org/
 
 Bug reports and enhancement submissions can be reported in the MapServer 
 issue tracker at the following url.   If you do make changes and/or enhancements, 
@@ -28,7 +28,7 @@ please let us know so that they might be incorporated into future releases.
 
 Join the MapServer user mailing list online at:
 
-  http://www.mapserver.org/community/lists.html
+  https://mapserver.org/community/lists.html
 
  
 


=====================================
maputil.c
=====================================
@@ -134,8 +134,10 @@ static int bindColorAttribute(colorObj *attribute, const char *value)
 
 static void bindStyle(layerObj *layer, shapeObj *shape, styleObj *style, int drawmode)
 {
+  int applyOpacity = MS_FALSE;
   assert(MS_DRAW_FEATURES(drawmode));
   if(style->numbindings > 0) {
+    applyOpacity = MS_TRUE;
     if(style->bindings[MS_STYLE_BINDING_SYMBOL].index != -1) {
       style->symbol = msGetSymbolIndex(&(layer->map->symbolset), shape->values[style->bindings[MS_STYLE_BINDING_SYMBOL].index], MS_TRUE);
       if(style->symbol == -1) style->symbol = 0; /* a reasonable default (perhaps should throw an error?) */
@@ -187,6 +189,7 @@ static void bindStyle(layerObj *layer, shapeObj *shape, styleObj *style, int dra
   }
   if (style->nexprbindings > 0)
   {
+    applyOpacity = MS_TRUE;
     if (style->exprBindings[MS_STYLE_BINDING_OFFSET_X].type == MS_EXPRESSION)
     {
       style->offsetx = msEvalDoubleExpression(
@@ -238,7 +241,8 @@ static void bindStyle(layerObj *layer, shapeObj *shape, styleObj *style, int dra
       msFree(txt);
     }
   }
-  if(style->opacity < 100 || style->color.alpha != 255 ) {
+
+  if(applyOpacity == MS_TRUE && (style->opacity < 100 || style->color.alpha != 255) ) {
     int alpha;
     alpha = MS_NINT(style->opacity*2.55);
     style->color.alpha = alpha;



View it on GitLab: https://salsa.debian.org/debian-gis-team/mapserver/-/commit/ed9c24bf8b9eacf95b37ddaae32c41076ace4bc9

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mapserver/-/commit/ed9c24bf8b9eacf95b37ddaae32c41076ace4bc9
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20200406/522a45cf/attachment-0001.html>


More information about the Pkg-grass-devel mailing list