[DEV] correct assert
This commit is contained in:
parent
d88028a7dc
commit
7ee8ff29bd
@ -34,8 +34,10 @@ ewol::object::Shared<ewol::Widget> ewol::widget::Layer::getWidgetAtPos(const vec
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
// for all element in the sizer ...
|
// for all element in the sizer ...
|
||||||
for (auto it : m_subWidget) {
|
for (auto &it : m_subWidget) {
|
||||||
if (it != nullptr) {
|
if (it == nullptr) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
vec2 tmpSize = it->getSize();
|
vec2 tmpSize = it->getSize();
|
||||||
vec2 tmpOrigin = it->getOrigin();
|
vec2 tmpOrigin = it->getOrigin();
|
||||||
if( (tmpOrigin.x() <= _pos.x() && tmpOrigin.x() + tmpSize.x() >= _pos.x())
|
if( (tmpOrigin.x() <= _pos.x() && tmpOrigin.x() + tmpSize.x() >= _pos.x())
|
||||||
@ -48,7 +50,6 @@ ewol::object::Shared<ewol::Widget> ewol::widget::Layer::getWidgetAtPos(const vec
|
|||||||
// parse the next layer ...
|
// parse the next layer ...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user