aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/PerLine.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index 8fd96cbed..14d89e100 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -108,11 +108,12 @@ bool MarkerHandleSet::RemoveNumber(int markerNum, bool all) {
}
void MarkerHandleSet::CombineWith(MarkerHandleSet *other) {
- MarkerHandleNumber **pmhn = &root;
+ MarkerHandleNumber **pmhn = &other->root;
while (*pmhn) {
pmhn = &((*pmhn)->next);
}
- *pmhn = other->root;
+ *pmhn = root;
+ root = other->root;
other->root = 0;
}