Diff
Not logged in

Differences From:

File src/timeline.c part of check-in [bbdd4f9915] - Add some javascript to the timeline to gray out versions that are not part of the line that is moused over. Also include leaf, fork, and merge markers on the timeline. Experimental. by drh on 2007-08-27 04:03:32. [view]

To:

File src/timeline.c part of check-in [a028affcf2] - Fix a bug in the javascript generator of the previous check-in. by drh on 2007-08-27 04:09:07. [view]

@@ -168,9 +168,9 @@
   Stmt q;
 
   db_prepare(&q, "SELECT pid FROM plink WHERE cid=%d AND isprim!=0", rid);
   zSep = "";
-  blob_appendf(pOut, "parentof[\"m%d\"] = [");
+  blob_appendf(pOut, "parentof[\"m%d\"] = [", rid);
   while( db_step(&q)==SQLITE_ROW ){
     int pid = db_column_int(&q, 0);
     blob_appendf(pOut, "%s\"m%d\"", zSep, pid);
     zSep = ",";
@@ -178,9 +178,9 @@
   db_finalize(&q);
   blob_appendf(pOut, "];\n");
   db_prepare(&q, "SELECT cid FROM plink WHERE pid=%d AND isprim!=0", rid);
   zSep = "";
-  blob_appendf(pOut, "childof[\"m%d\"] = [");
+  blob_appendf(pOut, "childof[\"m%d\"] = [", rid);
   while( db_step(&q)==SQLITE_ROW ){
     int pid = db_column_int(&q, 0);
     blob_appendf(pOut, "%s\"m%d\"", zSep, pid);
     zSep = ",";