diff --git a/src/others/vg_lite_tvg/vg_lite_tvg.cpp b/src/others/vg_lite_tvg/vg_lite_tvg.cpp index 81efaa3a4..47d1930c8 100644 --- a/src/others/vg_lite_tvg/vg_lite_tvg.cpp +++ b/src/others/vg_lite_tvg/vg_lite_tvg.cpp @@ -2324,6 +2324,8 @@ static Result shape_append_path(std::unique_ptr & shape, vg_lite_path_t * cur += arg_len * fmt_len; } + TVG_CHECK_RETURN_RESULT(shape_set_stroke(shape, path)); + float x_min = path->bounding_box[0]; float y_min = path->bounding_box[1]; float x_max = path->bounding_box[2]; @@ -2334,8 +2336,6 @@ static Result shape_append_path(std::unique_ptr & shape, vg_lite_path_t * return Result::Success; } - TVG_CHECK_RETURN_RESULT(shape_set_stroke(shape, path)); - auto cilp = Shape::gen(); TVG_CHECK_RETURN_RESULT(cilp->appendRect(x_min, y_min, x_max - x_min, y_max - y_min, 0, 0)); TVG_CHECK_RETURN_RESULT(cilp->transform(matrix_conv(matrix)));