aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-15 21:34:21 +0800
committercrupest <crupest@outlook.com>2022-02-15 21:34:21 +0800
commit24aaa8fbc5da8370506402facdb8ccaf563454e5 (patch)
tree0075bfbee729b1ccc57966bef97bda4be09cbde9 /include/cru/ui/render
parentfa6e9a419f688df12a57199aa3b4dce10cc6fd49 (diff)
downloadcru-24aaa8fbc5da8370506402facdb8ccaf563454e5.tar.gz
cru-24aaa8fbc5da8370506402facdb8ccaf563454e5.tar.bz2
cru-24aaa8fbc5da8370506402facdb8ccaf563454e5.zip
...
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r--include/cru/ui/render/LayoutRenderObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/render/LayoutRenderObject.h b/include/cru/ui/render/LayoutRenderObject.h
index 8fec3ada..11df0449 100644
--- a/include/cru/ui/render/LayoutRenderObject.h
+++ b/include/cru/ui/render/LayoutRenderObject.h
@@ -39,7 +39,7 @@ class LayoutRenderObject : public RenderObject {
}
void RemoveChild(Index position) {
- Expects(position > 0 && position < GetChildCount());
+ Expects(position >= 0 && position < GetChildCount());
children_[position].render_object->SetParent(nullptr);
children_.erase(children_.begin() + position);
InvalidateLayout();