[graph] Cosmetic
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c57435c96d
commit
ed7865c37b
|
@ -284,7 +284,7 @@ graph_tell(widget_t *widget, char *property, char *new_value)
|
|||
if(!d->data_items)
|
||||
return WIDGET_ERROR_CUSTOM; /* error already printed on _new */
|
||||
|
||||
if(new_value == NULL)
|
||||
if(!new_value)
|
||||
return WIDGET_ERROR_NOVALUE;
|
||||
|
||||
if(!a_strcmp(property, "data"))
|
||||
|
@ -294,7 +294,6 @@ graph_tell(widget_t *widget, char *property, char *new_value)
|
|||
return WIDGET_ERROR_NOVALUE;
|
||||
|
||||
for(i = 0; i < d->data_items; i++)
|
||||
{
|
||||
if(!a_strcmp(title, d->data_title[i]))
|
||||
{
|
||||
value = MAX(atof(setting), 0);
|
||||
|
@ -341,7 +340,6 @@ graph_tell(widget_t *widget, char *property, char *new_value)
|
|||
}
|
||||
return WIDGET_NOERROR;
|
||||
}
|
||||
}
|
||||
return WIDGET_ERROR_FORMAT_SECTION;
|
||||
}
|
||||
else if(!a_strcmp(property, "height"))
|
||||
|
|
Loading…
Reference in New Issue