Code

make setting just the size and not the font work -- Havard Eidnes <he from uninett.no>
[rrdtool.git] / src / rrd_graph.c
index 0572241cd2b37357c584efb13a047b0c8b196554..b5410f34930520bf0710c908575920760e1121d1 100644 (file)
@@ -3150,7 +3150,7 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im)
 
            if(sscanf(optarg,
                                "%10[A-Z]:%lf:%1000s",
-                               prop,&size,font) == 3){
+                               prop,&size,font) >= 2){
                int sindex,propidx;
                if((sindex=text_prop_conv(prop)) != -1){
                   for (propidx=sindex;propidx<TEXT_PROP_LAST;propidx++){