mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
fixes: GraphingNumber doesn't work correctly
This commit is contained in:
parent
ae5d6c6f95
commit
9c36d93329
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ namespace CalculatorApp
|
||||||
// If the rich edit has content already, then the mathzone will already be created due to mathonly mode being set and the selection will exist inside the
|
// If the rich edit has content already, then the mathzone will already be created due to mathonly mode being set and the selection will exist inside the
|
||||||
// math zone. To handle this, we will force a math zone to be created in teh case of the text being empty and then replacing the text inside of the math
|
// math zone. To handle this, we will force a math zone to be created in teh case of the text being empty and then replacing the text inside of the math
|
||||||
// zone with the newly inserted text.
|
// zone with the newly inserted text.
|
||||||
if (GetMathTextProperty() == null)
|
if (string.IsNullOrEmpty(GetMathTextProperty()))
|
||||||
{
|
{
|
||||||
SetMathTextProperty("<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mi>x</mi></math>");
|
SetMathTextProperty("<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mi>x</mi></math>");
|
||||||
TextDocument.Selection.StartPosition = 0;
|
TextDocument.Selection.StartPosition = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue