From: Jean-Marc Lasgouttes Date: Fri, 30 Aug 2024 13:07:03 +0000 (+0200) Subject: Fixup 999fb37e: fix thinko X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2eb4e3d3ca063d12371695282ae0bc3d9609ab06;p=lyx.git Fixup 999fb37e: fix thinko The current buffer is part of allRelatives(), contrary to what I thought. Therefore updateId() increased the buffer id by two. --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 6c5713b9c2..f473f3dc6f 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -803,7 +803,6 @@ int Buffer::id() const void Buffer::updateId() { - ++d->id_; for(Buffer * b : allRelatives()) ++(b->d->id_); }