]> git.lyx.org Git - lyx.git/commit
Fix bug #8166: Crash on clicking away from empty paragraph
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 22 May 2012 23:31:43 +0000 (01:31 +0200)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 22 May 2012 23:31:43 +0000 (01:31 +0200)
commit0a33374c0d8125e27666fe513506fb6069df453c
tree56c3c3234df64b1ad17887da3c75f8ae0fdc7e88
parente3854bb59b98ee4f7514cf2ca5585cb6be949186
Fix bug #8166: Crash on clicking away from empty paragraph

We rely on the 'or' operator to prevent us from calling
'notifyCursorLeaves' if one of the two cursors is broken. This doesn't
work when using the '|' operator. The compiler 'optimizes' the code in
such a way that we always call notifyCursorLeaves anyway. Using the '||'
operator fixes this.
src/BufferView.cpp