diff src/grapher.cpp @ 371:f051d210521e

Ensure current item is visible in graph after update
author Chris Cannam
date Thu, 24 Mar 2011 10:47:03 +0000
parents b9c153e00e84
children 6718bbc073b4
line wrap: on
line diff
--- a/src/grapher.cpp	Thu Mar 24 10:27:51 2011 +0000
+++ b/src/grapher.cpp	Thu Mar 24 10:47:03 2011 +0000
@@ -363,8 +363,15 @@
 ChangesetItem *
 Grapher::getItemFor(Changeset *cs)
 {
-    if (!cs || !m_items.contains(cs->id())) return 0;
-    return m_items[cs->id()];
+    if (!cs) return 0;
+    return getItemFor(cs->id());
+}
+
+ChangesetItem *
+Grapher::getItemFor(QString id)
+{
+    if (!m_items.contains(id)) return 0;
+    return m_items[id];
 }
 
 void Grapher::layout(Changesets csets,