[DEV] correct assert
This commit is contained in:
parent
d88028a7dc
commit
7ee8ff29bd
@ -34,19 +34,20 @@ 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) {
|
||||||
vec2 tmpSize = it->getSize();
|
continue;
|
||||||
vec2 tmpOrigin = it->getOrigin();
|
}
|
||||||
if( (tmpOrigin.x() <= _pos.x() && tmpOrigin.x() + tmpSize.x() >= _pos.x())
|
vec2 tmpSize = it->getSize();
|
||||||
&& (tmpOrigin.y() <= _pos.y() && tmpOrigin.y() + tmpSize.y() >= _pos.y()) )
|
vec2 tmpOrigin = it->getOrigin();
|
||||||
{
|
if( (tmpOrigin.x() <= _pos.x() && tmpOrigin.x() + tmpSize.x() >= _pos.x())
|
||||||
ewol::object::Shared<ewol::Widget> tmpWidget = it->getWidgetAtPos(_pos);
|
&& (tmpOrigin.y() <= _pos.y() && tmpOrigin.y() + tmpSize.y() >= _pos.y()) )
|
||||||
if (nullptr != tmpWidget) {
|
{
|
||||||
return tmpWidget;
|
ewol::object::Shared<ewol::Widget> tmpWidget = it->getWidgetAtPos(_pos);
|
||||||
}
|
if (nullptr != tmpWidget) {
|
||||||
// parse the next layer ...
|
return tmpWidget;
|
||||||
}
|
}
|
||||||
|
// parse the next layer ...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user