diff src/grapher.cpp @ 409:69fb864a3972

Fix same-branch check for uncommitted item on default branch
author Chris Cannam
date Mon, 06 Jun 2011 21:33:25 +0100
parents b1f0fa991c49
children 470829a21f98
line wrap: on
line diff
--- a/src/grapher.cpp	Mon Jun 06 21:20:11 2011 +0100
+++ b/src/grapher.cpp	Mon Jun 06 21:33:25 2011 +0100
@@ -454,7 +454,7 @@
             conn->setZValue(-1);
             m_scene->addItem(conn);
             if (pitem) {
-                if (pitem->getChangeset()->branch() == uncommittedBranch) {
+                if (pitem->getChangeset()->isOnBranch(uncommittedBranch)) {
                     haveParentOnBranch = true;
                 }
             }