mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
update frameworks/core/components_ng/pattern/rich_editor/rich_editor_pattern.cpp.
Signed-off-by: zzc0127 <zhangzecong@huawei.com>
This commit is contained in:
parent
75fd1e142c
commit
a267a6b33b
@ -6939,7 +6939,7 @@ void RichEditorPattern::MouseRightFocus(const MouseInfo& info)
|
||||
auto isNeedSelected = false;
|
||||
if (selectEnd == selectStart + 1) {
|
||||
auto selectInfo = GetSpansInfo(selectStart, selectEnd, GetSpansMethod::ONSELECT);
|
||||
auto results = selectInfo.GetSelection().resultObjects;
|
||||
auto& results = selectInfo.GetSelection().resultObjects;
|
||||
// select image or builder
|
||||
isNeedSelected = results.size() == 1 && results.front().type == SelectSpanType::TYPEIMAGE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user