better handling of setting func_str to an empty string

This commit is contained in:
Simon Gardling
2022-03-03 00:26:35 -05:00
parent 43fe4e64af
commit 68322f37db
2 changed files with 5 additions and 3 deletions

View File

@@ -279,7 +279,7 @@ impl MathApp {
);
}
} else {
function.func_str = String::new();
function.empty_func_str();
}
}
@@ -349,7 +349,7 @@ impl epi::App for MathApp {
None, // Doesn't matter, updated later
Some(self.settings.sum),
);
function.func_str = String::new();
function.empty_func_str();
function
});
self.func_strs.push(String::new());