[escher] ExpressionView: discard optimization that triggers a bug

This commit is contained in:
Émilie Feral
2019-05-13 17:54:45 +02:00
parent a0a93a1287
commit 4dd7d1d792

View File

@@ -15,9 +15,13 @@ ExpressionView::ExpressionView(float horizontalAlignment, float verticalAlignmen
}
bool ExpressionView::setLayout(Layout layoutR) {
if (m_layout.isIdenticalTo(layoutR)) {
/* TODO: this would avoid some useless redrawing. However, when we call
* setLayout after raising an Exception that led to erase all
* Poincare::TreePool, accessing m_layout will result in an ACCESS ERROR.
* How do we avoid that? */
/*if (m_layout.isIdenticalTo(layoutR)) {
return false;
}
}*/
m_layout = layoutR;
markRectAsDirty(bounds());
return true;