mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
修改告警
Signed-off-by: luoweibin <luoweibin3@huawei.com> Change-Id: I69651b04dfc640b0fd365c67272ab60432a5da2b
This commit is contained in:
parent
d6b5963415
commit
55a30ac203
@ -1529,7 +1529,7 @@ float GridScrollLayoutAlgorithm::FillNewLineBackward(
|
||||
--currentIndex;
|
||||
break;
|
||||
}
|
||||
i = static_cast<uint32_t>(lastCross_) - 1;
|
||||
i = static_cast<uint32_t>(lastCross_ - 1);
|
||||
// Step3. Measure [GridItem]
|
||||
LargeItemLineHeight(itemWrapper, hasNormalItem);
|
||||
|
||||
|
@ -225,7 +225,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_Splice(
|
||||
ArkUI_ListChildrenMainSize* option, int32_t index, int32_t deleteCount, int32_t addCount)
|
||||
{
|
||||
CHECK_NULL_RETURN(option, OHOS::Ace::ERROR_CODE_PARAM_INVALID);
|
||||
if (index < 0 || deleteCount < 0 || addCount < 0 || option->mainSize.size() - 1 < static_cast<size_t>(index)) {
|
||||
if (index < 0 || deleteCount < 0 || addCount < 0 || static_cast<int32_t>(option->mainSize.size()) - 1 < index) {
|
||||
return OHOS::Ace::ERROR_CODE_PARAM_INVALID;
|
||||
}
|
||||
while (deleteCount > 0) {
|
||||
@ -245,7 +245,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_UpdateSize(
|
||||
ArkUI_ListChildrenMainSize* option, int32_t index, float mainSize)
|
||||
{
|
||||
CHECK_NULL_RETURN(option, OHOS::Ace::ERROR_CODE_PARAM_INVALID);
|
||||
if (index < 0 || mainSize < 0 || option->mainSize.size() - 1 < static_cast<size_t>(index)) {
|
||||
if (index < 0 || mainSize < 0 || static_cast<int32_t>(option->mainSize.size()) - 1 < index) {
|
||||
return OHOS::Ace::ERROR_CODE_PARAM_INVALID;
|
||||
}
|
||||
option->mainSize[index] = mainSize;
|
||||
@ -255,7 +255,7 @@ int32_t OH_ArkUI_ListChildrenMainSizeOption_UpdateSize(
|
||||
float OH_ArkUI_ListChildrenMainSizeOption_GetMainSize(ArkUI_ListChildrenMainSize* option, int32_t index)
|
||||
{
|
||||
CHECK_NULL_RETURN(option, -1);
|
||||
if (index < 0 || option->mainSize.size() - 1 < static_cast<uint32_t>(index)) {
|
||||
if (index < 0 || static_cast<int32_t>(option->mainSize.size()) - 1 < index) {
|
||||
return -1;
|
||||
}
|
||||
return option->mainSize[index];
|
||||
|
Loading…
Reference in New Issue
Block a user