mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Fix Clang 14 warning -Wbitwise-instead-of-logical
Use the boolean operator '||' with bools instead of the bitwise operator '|'.
This commit is contained in:
parent
e4416535e4
commit
a83159f051
@ -2531,7 +2531,7 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
|
|||||||
|
|
||||||
// Notify left insets
|
// Notify left insets
|
||||||
if (cur != old) {
|
if (cur != old) {
|
||||||
bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
|
bool badcursor = old.fixIfBroken() || cur.fixIfBroken();
|
||||||
badcursor |= notifyCursorLeavesOrEnters(old, cur);
|
badcursor |= notifyCursorLeavesOrEnters(old, cur);
|
||||||
if (badcursor)
|
if (badcursor)
|
||||||
cursor().fixIfBroken();
|
cursor().fixIfBroken();
|
||||||
|
Loading…
Reference in New Issue
Block a user