]> git.lyx.org Git - features.git/commit
Fix cursor movement for large logos (#9628)
authorGeorg Baum <baum@lyx.org>
Sun, 11 Oct 2015 12:21:45 +0000 (14:21 +0200)
committerGeorg Baum <baum@lyx.org>
Sun, 11 Oct 2015 12:21:45 +0000 (14:21 +0200)
commit359aef92f87169ce2683e287bb24bc3d5f46a190
tree104295719d90f5ba83235317cdfa0eff3fe6f29d
parent15a5e0f7936650328ea28ef38988cdbb92f62a27
Fix cursor movement for large logos (#9628)

Previously, if one clicked onto a large non-editable inset like the new LyX
logo inset, the cursor was always positioned in front of the inset, even if
the click was almost at the back edge. Now the cursor is positioned at the
correct edge. I tested this also with RTL contents, where from means right
and back means left, but the inset anchor position anchor point is still
at the left, and the right edge is dim.wid pixels to the right of it.
src/TextMetrics.cpp