]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Fix bug #8166: Crash on clicking away from empty paragraph
[lyx.git] / src / BufferView.cpp
index a30c0f0c2fdc8545d8125c61360b2c34a3888c0d..1017cea7c0212428c307cdfec50342d46453094a 100644 (file)
@@ -2201,8 +2201,8 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
 
        // Notify left insets
        if (cur != old) {
-               bool badcursor = old.fixIfBroken() | cur.fixIfBroken()
-                               | notifyCursorLeavesOrEnters(old, cur);
+               bool badcursor = old.fixIfBroken() || cur.fixIfBroken()
+                               || notifyCursorLeavesOrEnters(old, cur);
                if (badcursor)
                        cursor().fixIfBroken();
        }