Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b9d2ca6 authored by Doug Felt's avatar Doug Felt
Browse files

Fix selection off-by-one bug.

The wrong value was used to measure the width of unidirectional text.

Change-Id: I57752c111641ca1cc951e0647b60c79f5a9493ad
parent 20e79fd4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -295,10 +295,10 @@ class TextLine {

        if (!mHasTabs) {
            if (mDirections == Layout.DIRS_ALL_LEFT_TO_RIGHT) {
                return measureRun( 0, 0, target, mLen, false, fmi);
                return measureRun( 0, 0, offset, mLen, false, fmi);
            }
            if (mDirections == Layout.DIRS_ALL_RIGHT_TO_LEFT) {
                return measureRun(0, 0, target, mLen, true, fmi);
                return measureRun(0, 0, offset, mLen, true, fmi);
            }
        }