mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-08 15:49:54 +03:00
feat(ui): add missing assert to CFramePoint ctor
This commit is contained in:
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user