mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): add missing assert to CFramePoint ctor
This commit is contained in:
parent
0fcf129d02
commit
beb9895092
@ -1,9 +1,12 @@
|
||||
#include "ui/CFramePoint.hpp"
|
||||
#include "ui/CLayoutFrame.hpp"
|
||||
#include <storm/Error.hpp>
|
||||
|
||||
const float CFramePoint::UNDEFINED = 3.4028237e38;
|
||||
|
||||
CFramePoint::CFramePoint(CLayoutFrame* relative, FRAMEPOINT framePoint, float offsetX, float offsetY) {
|
||||
STORM_ASSERT(relative != nullptr && framePoint != FRAMEPOINT_NUMPOINTS);
|
||||
|
||||
this->m_offset = { offsetX, offsetY };
|
||||
this->m_framePoint = framePoint;
|
||||
this->m_relative = relative;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user