Fix SetPrimaryCursorPosition issue 41/263641/1
authorBowon Ryu <bowon.ryu@samsung.com>
Tue, 7 Sep 2021 07:57:32 +0000 (16:57 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Tue, 7 Sep 2021 07:57:32 +0000 (16:57 +0900)
commita2e89745e6dc47b21b9714de87fc230a67addf5e
tree79048ddf5c4daa50cd5f0c0fa73e006681827e96
parentfa5d5fb58397f47073bec868cb9d4a7a8be1427a
Fix SetPrimaryCursorPosition issue

In SetPrimaryCursorPosition(),
case of (mPrimaryCursorPosition == index), nothing happens.
But if selection is activated, this should be cancelled.

This patch adds a condition to ensure behaviour in selection case.

Change-Id: I5a6b2d44948f42850ee001432c6fc85fb8eab274
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/text-controller-impl.cpp