diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/PerLine.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 6eb37ad1a..b258c745c 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -78,7 +78,11 @@ bool MarkerHandleSet::RemoveNumber(int markerNum, bool all) { } void MarkerHandleSet::CombineWith(MarkerHandleSet *other) { - mhList.splice_after(mhList.cbegin(), other->mhList); + if (mhList.empty()) { + mhList = std::move(other->mhList); + } else { + mhList.splice_after(mhList.cbegin(), other->mhList); + } } LineMarkers::~LineMarkers() { |