mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[escher] ExpressionView: discard optimization that triggers a bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user