diff --git a/middleware/legato/library/src/gfx/legato/datastructure/legato_rectarray.c b/middleware/legato/library/src/gfx/legato/datastructure/legato_rectarray.c index f72a8e0b0..2a01c60fa 100644 --- a/middleware/legato/library/src/gfx/legato/datastructure/legato_rectarray.c +++ b/middleware/legato/library/src/gfx/legato/datastructure/legato_rectarray.c @@ -487,7 +487,7 @@ leResult leRectArray_PadRectangleHeight(leRectArray* arr, splitRect.y -= size - mod; splitRect.height += size - mod; - splitRect.y = arr->rects[rectItr].x + oldHeight - splitRect.height; + splitRect.y = arr->rects[rectItr].y + oldHeight - splitRect.height; leRectArray_PushBack(arr, &splitRect); } @@ -607,4 +607,4 @@ leResult leRectArray_CropToSizeX(leRectArray* arr, } return LE_SUCCESS; -} \ No newline at end of file +}