Skip to content

Commit

Permalink
getCursorRect(): fix bottom point check
Browse files Browse the repository at this point in the history
Use docToWindowPoint(... isRectBottom=true) from 939cfc2
when checking bottomRight point.
(This fixes some issues with CJK/Symbol text selection on
the bottom line of a page.)
  • Loading branch information
poire-z committed Mar 24, 2022
1 parent 05f59e6 commit b0fdab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crengine/src/lvdocview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3163,7 +3163,7 @@ bool LVDocView::getCursorRect(ldomXPointer ptr, lvRect & rc,

lvPoint topLeft = rc.topLeft();
lvPoint bottomRight = rc.bottomRight();
if (docToWindowPoint(topLeft) && docToWindowPoint(bottomRight)) {
if (docToWindowPoint(topLeft) && docToWindowPoint(bottomRight, true)) {
rc.setTopLeft(topLeft);
rc.setBottomRight(bottomRight);
return true;
Expand Down

0 comments on commit b0fdab3

Please sign in to comment.