mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/regression] Add index assertions
This commit is contained in:
committed by
EmilieNumworks
parent
ebeb8e2022
commit
11c0b02b7b
@@ -46,8 +46,10 @@ void GraphView::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
|
||||
char * GraphView::label(Axis axis, int index) const {
|
||||
if (axis == Axis::Vertical) {
|
||||
assert(index < k_maxNumberOfXLabels);
|
||||
return (char *)m_yLabels[index];
|
||||
}
|
||||
assert(index < k_maxNumberOfYLabels);
|
||||
return (char *)m_xLabels[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user