From: ellson Date: Mon, 31 Jan 2005 14:31:30 +0000 (+0000) Subject: correction to previous chnge - return success X-Git-Tag: LAST_LIBGRAPH~32^2~7970 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f81fbda7aabb0ef572362ff82fe0db35b369607;p=graphviz correction to previous chnge - return success --- diff --git a/lib/gvc/gvplugin_text.h b/lib/gvc/gvplugin_text.h index b46b5c023..345f2b121 100644 --- a/lib/gvc/gvplugin_text.h +++ b/lib/gvc/gvplugin_text.h @@ -25,7 +25,7 @@ extern "C" { #endif struct gvtext_engine_s { - int (*width) (textline_t *textline, char *fontname, double fontsize, char* fontpath); + boolean (*width) (textline_t *textline, char *fontname, double fontsize, char* fontpath); }; #ifdef __cplusplus diff --git a/lib/gvc/gvtext.c b/lib/gvc/gvtext.c index f8ee4667c..dfa113d4b 100644 --- a/lib/gvc/gvtext.c +++ b/lib/gvc/gvtext.c @@ -48,7 +48,7 @@ int gvtext_select(GVC_t * gvc, char *text_layout) double gvtext_width(GVC_t *gvc, textline_t *textline, char *fontname, double fontsize, char *fontpath) { gvtext_engine_t *gvte = gvc->text_engine; - int rc; + boolean rc; if (gvte && gvte->width) { rc = gvte->width(textline, fontname, fontsize, fontpath);