3fd4131517e0d224eb271e312c9fda6419e1872d kate Tue Mar 13 15:51:59 2018 -0700 1. Add support for spectrum setting. 2. Allow dot for empty field. 3. Show multiple items on details page if they overlap. 4. Some cleanup of map boxes. refs #17512 diff --git src/lib/common.c src/lib/common.c index a6ad49e..1137251 100644 --- src/lib/common.c +++ src/lib/common.c @@ -1364,30 +1364,36 @@ * strings. * This is basically a strcmp that can handle NULLs in * the input. If used in a sort the NULLs will end * up before any of the cases with data. */ { if (a == b) return FALSE; else if (a == NULL) return -1; else if (b == NULL) return 1; else return strcmp(a,b) != 0; } +boolean isEmptyTextField(char *s) +/* Recognize NULL or dot as empty text */ +{ +return (isEmpty(s) || sameString(".", s)); +} + boolean startsWith(const char *start, const char *string) /* Returns TRUE if string begins with start. */ { char c; int i; for (i=0; ;i += 1) { if ((c = start[i]) == 0) return TRUE; if (string[i] != c) return FALSE; } }