mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 22:00:28 +01:00
[poincare] Fix Matrix copy bug.
When selecting a matrix in the calculation history and pressing 'OK', in the apps Calculation, there was a nullptr bug. Change-Id: I8f05771b76bcb3c68b51cf8ca33a49011144abf9
This commit is contained in:
@@ -199,7 +199,7 @@ void ScrollableExpressionViewWithCursor::insertLayoutAtCursor(Poincare::Expressi
|
||||
return;
|
||||
}
|
||||
KDSize previousSize = minimalSizeForOptimalDisplay();
|
||||
if (layout->isMatrix() && pointedLayout->hasAncestor(layout)) {
|
||||
if (layout->isMatrix() && pointedLayout && pointedLayout->hasAncestor(layout)) {
|
||||
static_cast<Poincare::MatrixLayout *>(layout)->addGreySquares();
|
||||
}
|
||||
if (pointedLayout != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user