]> git.lyx.org Git - lyx.git/commitdiff
Fixup 999fb37e: fix thinko
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 30 Aug 2024 13:07:03 +0000 (15:07 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 30 Aug 2024 13:07:03 +0000 (15:07 +0200)
The current buffer is part of allRelatives(), contrary to what I
thought. Therefore updateId() increased the buffer id by two.

src/Buffer.cpp

index 6c5713b9c28631da38b339e4d49a5b70a940bfd0..f473f3dc6f12b07d9bf17bb57d24989fb589cc85 100644 (file)
@@ -803,7 +803,6 @@ int Buffer::id() const
 
 void Buffer::updateId()
 {
-       ++d->id_;
        for(Buffer * b : allRelatives())
                ++(b->d->id_);
 }