[poincare] Fix fix CharLayout: avoid adding multiplication sign between Sto

and another expression without breaking other writeTextInBuffer
(1+x+x^2+x^3)
This commit is contained in:
Émilie Feral
2018-05-25 09:44:30 +02:00
committed by LeaNumworks
parent d11967f41a
commit 20f60319bf
2 changed files with 0 additions and 9 deletions

View File

@@ -59,13 +59,6 @@ bool CharLayout::isCollapsable(int * numberOfOpenParenthesis, bool goingLeft) co
return true;
}
bool CharLayout::canBeOmittedMultiplicationLeftFactor() const {
return m_char != Ion::Charset::Sto;
}
bool CharLayout::canBeOmittedMultiplicationRightFactor() const {
return m_char != Ion::Charset::Sto;
}
void CharLayout::render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) {
char string[2] = {m_char, 0};
ctx->drawString(string, p, m_fontSize, expressionColor, backgroundColor);

View File

@@ -28,8 +28,6 @@ public:
// Other
bool isCollapsable(int * numberOfOpenParenthesis, bool goingLeft) const override;
bool canBeOmittedMultiplicationLeftFactor() const override;
bool canBeOmittedMultiplicationRightFactor() const override;
protected:
void render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override;
KDPoint positionOfChild(ExpressionLayout * child) override {