Mercurial > hg > easyhg
comparison grapher.cpp @ 122:c3e8342d2de9
* Further fix to incremental log (put new changesets on the correct end of the list!)
author | Chris Cannam |
---|---|
date | Mon, 29 Nov 2010 11:14:29 +0000 |
parents | 005a54380502 |
children | e8a481789607 |
comparison
equal
deleted
inserted
replaced
121:6ce2ceb2c3a5 | 122:c3e8342d2de9 |
---|---|
121 if (!m_items.contains(id)) { | 121 if (!m_items.contains(id)) { |
122 throw LayoutException(QString("Changeset %1 not in item map").arg(id)); | 122 throw LayoutException(QString("Changeset %1 not in item map").arg(id)); |
123 } | 123 } |
124 | 124 |
125 Changeset *cs = m_changesets[id]; | 125 Changeset *cs = m_changesets[id]; |
126 // DEBUG << "layoutCol: Looking at " << id.toStdString() << endl; | 126 DEBUG << "layoutCol: Looking at " << id.toStdString() << endl; |
127 | 127 |
128 ChangesetItem *item = m_items[id]; | 128 ChangesetItem *item = m_items[id]; |
129 | 129 |
130 int col = 0; | 130 int col = 0; |
131 int row = item->row(); | 131 int row = item->row(); |
178 col = findAvailableColumn(item->row(), col, false); | 178 col = findAvailableColumn(item->row(), col, false); |
179 } | 179 } |
180 break; | 180 break; |
181 } | 181 } |
182 | 182 |
183 // DEBUG << "putting " << cs->id().toStdString() << " at col " << col << endl; | 183 DEBUG << "putting " << cs->id().toStdString() << " at col " << col << endl; |
184 | 184 |
185 m_alloc[row].insert(col); | 185 m_alloc[row].insert(col); |
186 item->setColumn(col); | 186 item->setColumn(col); |
187 m_handled.insert(id); | 187 m_handled.insert(id); |
188 | 188 |