25 g_warning (
"Coordinate string is empty. Creating default Pt2\n");
28 char **coords = g_strsplit(coord_str,
":", 0);
29 if (coords[0] ==
nullptr || coords[1] ==
nullptr || coords[2] ==
nullptr) {
31 g_warning (
"Malformed coordinate string.\n");
35 pt[0] = g_ascii_strtod(coords[0],
nullptr);
36 pt[1] = g_ascii_strtod(coords[1],
nullptr);
37 pt[2] = g_ascii_strtod(coords[2],
nullptr);
73 g_warning (
"Coordinate string is empty. Creating default Pt2\n");
76 char **coords = g_strsplit(coord_str,
":", 0);
77 if (coords[0] ==
nullptr || coords[1] ==
nullptr ||
78 coords[2] ==
nullptr || coords[3] ==
nullptr) {
80 g_warning (
"Malformed coordinate string.\n");
84 pt[0] = g_ascii_strtod(coords[0],
nullptr);
85 pt[1] = g_ascii_strtod(coords[1],
nullptr);
86 pt[2] = g_ascii_strtod(coords[2],
nullptr);
87 pt[3] = g_ascii_strtod(coords[3],
nullptr);