Skip to content

Commit

Permalink
Ticket #5917 Dont fail when rendering UTFGrid with outline
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Plante authored and dmorissette committed Nov 12, 2019
1 parent 0fcc810 commit e1a3b57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion maputfgrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,10 @@ int utfgridRenderLine(imageObj *img, shapeObj *lineshape, strokeStyleObj *linest

/* utfvalue is set to 0 if the shape isn't in the table. */
if(r->utfvalue == 0) {
return MS_FAILURE;
return MS_SUCCESS;
/* If we dont get a caracter to draw we just skip execution
* instead of failing
*/
}

/* Render the line */
Expand Down
1 change: 1 addition & 0 deletions msautotest/renderers/expected/line_label_auto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"grid":[" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," !!!!! "," !!!!!!!!!!!!!!! "," !!!!!!!!!!!!!!!!!!!!!!!!! "," !!!!!!!!!!!!!!!!!!!!! !!! "," !!!!!!!!!!!! !!! "," !!!! !!! "," !!! !!! "," !! !! "," !! $$$ "," !!! $$$$$$$ "," !!! $$$$ $$$$$ !! "," !! $$$$ $$$$ !! "," !!! $$$$$ $$ !! ### "," !!! $$$$ !! ##### "," !! $$$$$ !! ##### "," !! $$$$$ !!! ###### "," !!! $$$$ !!! ##### "," !!! $$$$$ !!! #### "," !! $$$$ !! ### "," !! $$$$$ !! ### ","!!! $$$$$ !! ### ","!!! $$$$ !! #### ##","!! $$$$$ !! #### ##","!! $$$$ !!!! #### ###","!! $$$ !!!!!!! ### ####","!! $$ !!!!!!!! ###### ### ","!!!! !!!!!!!! ######## ### ","!!!!!!! !!!!!!!! ###### ### "," !!!!!!! !!!!!!!! #### ## "," !!!!!! !!!!!!!! #### ## "," !!!!!!! !!!!!!!! ####### ## "," !!!!!!!!!!!!! ########### ### "," !!!!!!!! ############# "," !!! ####### "," # "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "],"keys":["","1","2","3"],"data":{}}
2 changes: 2 additions & 0 deletions msautotest/renderers/line_label_auto.map
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# RUN_PARMS: line_label_auto.png [SHP2IMG] -m [MAPFILE] -i png -o [RESULT]
# RUN_PARMS: line_label_auto.pdf [SHP2IMG] -m [MAPFILE] -i pdf -o [RESULT]
# RUN_PARMS: line_label_auto.svg [SHP2IMG] -m [MAPFILE] -i svg -o [RESULT]
# RUN_PARMS: line_label_auto.json [SHP2IMG] -m [MAPFILE] -i json -o [RESULT]
# RUN_PARMS: line_label_auto.cairo.png [SHP2IMG] -m [MAPFILE] -i cairopng -o [RESULT]
#
map
Expand Down Expand Up @@ -41,3 +42,4 @@ layer
end

end

0 comments on commit e1a3b57

Please sign in to comment.