diff options
author | crupest <crupest@outlook.com> | 2019-03-22 13:41:22 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-22 13:41:22 +0800 |
commit | 63a5d619ac81ba3f48e95c890d96fa7d9047bb26 (patch) | |
tree | 0ea055acb55cf32380f22f760d82fba7894effb3 /src/ui/render/flex_layout_render_object.cpp | |
parent | afdac77a66143375b5bebd4ff128b0fba87c5d21 (diff) | |
download | cru-63a5d619ac81ba3f48e95c890d96fa7d9047bb26.tar.gz cru-63a5d619ac81ba3f48e95c890d96fa7d9047bb26.tar.bz2 cru-63a5d619ac81ba3f48e95c890d96fa7d9047bb26.zip |
...
Diffstat (limited to 'src/ui/render/flex_layout_render_object.cpp')
-rw-r--r-- | src/ui/render/flex_layout_render_object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/render/flex_layout_render_object.cpp b/src/ui/render/flex_layout_render_object.cpp index 7891906d..5383c462 100644 --- a/src/ui/render/flex_layout_render_object.cpp +++ b/src/ui/render/flex_layout_render_object.cpp @@ -8,8 +8,8 @@ namespace cru::ui::render { FlexChildLayoutData* FlexLayoutRenderObject::GetChildLayoutData(int position) { - if (position < 0 || position >= child_layout_data_.size()) - throw std::invalid_argument("Position out of bound."); + assert(position >= 0 && + position < child_layout_data_.size()); // Position out of bound. return &child_layout_data_[position]; } |