Skip to content

Commit 35b82b9

Browse files
committed
msDrawTextSymbol(): fix compiler warning about unused return value
1 parent a3a481a commit 35b82b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: maprendering.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,7 @@ int msDrawTextSymbol(mapObj *map, imageObj *image, pointObj labelPnt, textSymbol
10261026
int g;
10271027
double ox, oy;
10281028
double cosa,sina;
1029+
int ret;
10291030
if(ts->rotation != 0) {
10301031
cosa = cos(ts->rotation);
10311032
sina = sin(ts->rotation);
@@ -1048,9 +1049,11 @@ int msDrawTextSymbol(mapObj *map, imageObj *image, pointObj labelPnt, textSymbol
10481049
ts_shadow->textpath->glyphs[g].pnt.y += oy;
10491050
}
10501051

1051-
renderer->renderGlyphs(image,ts_shadow->textpath,&ts->label->shadowcolor,NULL,0);
1052+
ret = renderer->renderGlyphs(image,ts_shadow->textpath,&ts->label->shadowcolor,NULL,0);
10521053
freeTextSymbol(ts_shadow);
10531054
msFree(ts_shadow);
1055+
if( ret != MS_SUCCESS )
1056+
return ret;
10541057
}
10551058

10561059
if(MS_VALID_COLOR(ts->label->color))

0 commit comments

Comments
 (0)