mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[shared] BannerView: add an assertion to avoid deferencing nullptr
This commit is contained in:
committed by
LeaNumworks
parent
b485319e76
commit
709a7028e8
@@ -52,6 +52,7 @@ void BannerView::layoutSubviews() {
|
||||
x += width;
|
||||
}
|
||||
// Next line
|
||||
assert(subviewPreviousLine);
|
||||
y += subviewPreviousLine->minimalSizeForOptimalDisplay().height() + LineSpacing;
|
||||
remainingWidth = lineWidth;
|
||||
indexOfFirstViewOfCurrentLine = i;
|
||||
|
||||
Reference in New Issue
Block a user