[LyX/master] Amend a83159f0: Use logical operator ||.

Kornel Benko kornel at lyx.org
Fri Apr 29 17:21:39 UTC 2022


commit 48c069fa8aec72840dc55688e21c38c5dd321e66
Author: Kornel Benko <kornel at lyx.org>
Date:   Fri Apr 29 19:56:12 2022 +0200

    Amend a83159f0: Use logical operator ||.
    
    Clang is not mocking here, but it looks more consistent.
---
 src/BufferView.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 30944cc..ebca6f8 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -2532,7 +2532,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
 	// Notify left insets
 	if (cur != old) {
 		bool badcursor = old.fixIfBroken() || cur.fixIfBroken();
-		badcursor |= notifyCursorLeavesOrEnters(old, cur);
+		badcursor = badcursor || notifyCursorLeavesOrEnters(old, cur);
 		if (badcursor)
 			cursor().fixIfBroken();
 	}


More information about the lyx-cvs mailing list