[LyX/master] Fixup 999fb37e: fix thinko

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Aug 30 13:09:48 UTC 2024


commit 2eb4e3d3ca063d12371695282ae0bc3d9609ab06
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Fri Aug 30 15:07:03 2024 +0200

    Fixup 999fb37e: fix thinko
    
    The current buffer is part of allRelatives(), contrary to what I
    thought. Therefore updateId() increased the buffer id by two.
---
 src/Buffer.cpp | 1 -
 1 file changed, 1 deletion(-)

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_);
 }


More information about the lyx-cvs mailing list