mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Amend 63be456c8
Fix crash when clicking on math previews
This commit is contained in:
parent
387ac78088
commit
b034389e6d
@ -2443,6 +2443,8 @@ void Cursor::moveToClosestEdge(int const x, bool const edit)
|
||||
if (edit && (inset->hasSettings() || !inset->contextMenuName().empty()))
|
||||
return;
|
||||
CoordCache::Insets const & insetCache = bv().coordCache().getInsets();
|
||||
if (!insetCache.has(inset))
|
||||
return;
|
||||
int const wid = insetCache.dim(inset).wid;
|
||||
Point p = insetCache.xy(inset);
|
||||
if (x > p.x_ + (wid + 1) / 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user