label_format can be null
parent
cefd00d1ea
commit
6f3d16fe10
|
@ -2067,7 +2067,7 @@ Monitor *Monitor::Load(MYSQL_ROW dbrow, bool load_zones, Purpose purpose) {
|
||||||
int colour = atoi(dbrow[col]); col++;
|
int colour = atoi(dbrow[col]); col++;
|
||||||
|
|
||||||
const char *event_prefix = dbrow[col]; col ++;
|
const char *event_prefix = dbrow[col]; col ++;
|
||||||
const char *label_format = dbrow[col]; col ++;
|
const char *label_format = dbrow[col] ? dbrow[col] : ""; col ++;
|
||||||
Coord label_coord = Coord( atoi(dbrow[col]), atoi(dbrow[col+1]) ); col += 2;
|
Coord label_coord = Coord( atoi(dbrow[col]), atoi(dbrow[col+1]) ); col += 2;
|
||||||
int label_size = atoi(dbrow[col]); col++;
|
int label_size = atoi(dbrow[col]); col++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue