• Pascal Nowack's avatar
    search-provider: stop normalizing the equation twice · 7899ad89
    Pascal Nowack authored
    When an equation is given by the g-s overview, g-c
    will solve this equation, where it will be first
    normalized and then solved.
    This is done by running a subprocess, where g-c
    will call g-c in this subprocess with the
    "--solve" argument.
    With this "--solve" argument, the equation will
    also be normalized.
    However, when an equation is given by the g-s
    overview, it will also be normalized in a check,
    that happens before the solve process, to not to
    process single numbers given by the g-s overview.
    This normalized equation will then be used to
    invoke the subprocess to solve the equation,
    leading into normalizing the already normalized
    equation and therefore resulting into wrong
    results when the equation itself contains
    decimal numbers.
    
    Solve this issue, by invoking the subprocess with
    the unnormalized equation, instead of the
    normalized one, to not to normalize the
    equation twice.
    
    Closes: #104
    7899ad89
Name
Last commit
Last update
data Loading commit data...
help Loading commit data...
lib Loading commit data...
m4 Loading commit data...
po Loading commit data...
search-provider Loading commit data...
snap Loading commit data...
src Loading commit data...
tests Loading commit data...
vapi Loading commit data...
.gitlab-ci.yml Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
gnome-calculator.doap Loading commit data...
meson.build Loading commit data...
meson_post_install.py Loading commit data...
org.gnome.Calculator.json Loading commit data...