projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the cursor position when retrieving the selected text.
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
text
/
text-controller-impl.cpp
diff --git
a/dali-toolkit/internal/text/text-controller-impl.cpp
b/dali-toolkit/internal/text/text-controller-impl.cpp
index
bd66860
..
795a929
100644
(file)
--- a/
dali-toolkit/internal/text/text-controller-impl.cpp
+++ b/
dali-toolkit/internal/text/text-controller-impl.cpp
@@
-899,10
+899,12
@@
void Controller::Impl::RetrieveSelection( std::string& selectedText, bool delete
Vector<Character>::Iterator first = currentText.Begin() + startOfSelectedText;
Vector<Character>::Iterator last = first + lengthOfSelectedText;
currentText.Erase( first, last );
Vector<Character>::Iterator first = currentText.Begin() + startOfSelectedText;
Vector<Character>::Iterator last = first + lengthOfSelectedText;
currentText.Erase( first, last );
+
+ // Scroll after delete.
+ mEventData->mPrimaryCursorPosition = handlesCrossed ? mEventData->mRightSelectionPosition : mEventData->mLeftSelectionPosition;
+ mEventData->mScrollAfterDelete = true;
+ mEventData->mDecoratorUpdated = true;
}
}
- mEventData->mPrimaryCursorPosition = handlesCrossed ? mEventData->mRightSelectionPosition : mEventData->mLeftSelectionPosition;
- mEventData->mScrollAfterDelete = true;
- mEventData->mDecoratorUpdated = true;
}
}
}
}