--- android/TrainInfoService/src/dk/thoerup/traininfoservice/RequestPlotter.java 2011/04/20 19:01:33 1355 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/RequestPlotter.java 2011/05/02 18:10:10 1425 @@ -267,6 +267,7 @@ for(RequestPosition current : list) { String id = color + count++; sb.append( " \n" ); + sb.append( " ").append(current.time).append("\n" ); sb.append( " #").append(color).append("\n" ); sb.append( " Time=").append(current.time).append("]]>\n" ); sb.append( " ").append(current.lng).append(",").append(current.lat).append(",0\n" ); @@ -385,6 +386,8 @@ if (count > 30) //limit to 30 days count = 30; + if (count < 0) //negative count is not allowed + count = 0; String kmlData = getRequestsFromFile(count);