Neal Wilson 9 years ago
parent
commit
c194bc4696
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      src/typica.w

+ 2
- 3
src/typica.w View File

@@ -12148,9 +12148,8 @@ if(xmlin.name() == "time")
12148 12148
 }
12149 12149
 else if(xmlin.name() == "temperature")
12150 12150
 {
12151
-    column = xmlin.attributes().value("series").toString().isEmpty() ?
12152
-             firstc : temperatureColumns.value(xmlin.attributes().
12153
-                                               value("series").toString());
12151
+    column = xmlin.attributes().hasAttribute("series") ?
12152
+        temperatureColumns.value(xmlin.attributes().value("series").toString()) : firstc;
12154 12153
     bool relative = (xmlin.attributes().value("relative") == "true");
12155 12154
     tempval = xmlin.readElementText().toDouble();
12156 12155
     Measurement measurement(tempval, timeval);

Loading…
Cancel
Save