projects
/
platform
/
core
/
uifw
/
isf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d7611d
)
Fix crash issue due to empty surrounding_text
63/273263/1
author
InHong Han
<inhong1.han@samsung.com>
Fri, 1 Apr 2022 09:37:10 +0000
(18:37 +0900)
committer
InHong Han
<inhong1.han@samsung.com>
Fri, 1 Apr 2022 09:37:10 +0000
(18:37 +0900)
Change-Id: Ic7583f816ebdeaf9519fa23e8dde1c71e69a923f
engine-loader/src/engine_loader.cpp
patch
|
blob
|
history
diff --git
a/engine-loader/src/engine_loader.cpp
b/engine-loader/src/engine_loader.cpp
index
e5f9544
..
a08ef2b
100644
(file)
--- a/
engine-loader/src/engine_loader.cpp
+++ b/
engine-loader/src/engine_loader.cpp
@@
-763,8
+763,10
@@
void EngineLoader::long_press_candidate_item(uint32_t index)
void EngineLoader::get_surrounding_text(int maxlen_before, int maxlen_after, scim::String &text, int &cursor)
{
- text = m_impl->surrounding_text;
- cursor = m_impl->cursor_pos;
+ if (m_impl->surrounding_text) {
+ text = m_impl->surrounding_text;
+ cursor = m_impl->cursor_pos;
+ }
}
void EngineLoader::set_surrounding_text(char* text, int cursor)