mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
!40064 waterflow:capi异常值检测
Merge pull request !40064 from gxjhl/0809capi
This commit is contained in:
commit
fef8931f8a
@ -77,6 +77,9 @@ void OH_ArkUI_WaterFlowSectionOption_SetCrossCount(
|
||||
if (index < 0) {
|
||||
return;
|
||||
}
|
||||
if (crossCount <= 0) {
|
||||
crossCount = 1;
|
||||
}
|
||||
auto size = static_cast<int32_t>(option->sections.size());
|
||||
if (size == 0 || size <= index + 1) {
|
||||
option->sections.resize(static_cast<uint32_t>(index + 1));
|
||||
|
Loading…
Reference in New Issue
Block a user