https://bugs.kde.org/show_bug.cgi?id=472597

            Bug ID: 472597
           Summary: History reflects operators even when they were
                    subsequently changed
    Classification: Applications
           Product: kcalc
           Version: 23.04.3
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ete...@alum.rit.edu
          Reporter: kroot...@gmail.com
  Target Milestone: ---

SUMMARY
History will reflect all operators as used in an calculation even if the
operator was changed before the calculation was evaluated. 


STEPS TO REPRODUCE
1. Ensure history pane is enabled
2. Type in 8 * (Shows in history as "8 x")
3. Type in /. This operator should overwrite the previous operator.
4. Type in 8 and press Enter or =

OBSERVED RESULT
Calculation returns 1 as the result which is correct as the division replaced
the multiplication operator. History however reflects that both operators were
evaluated: "8 × 8 ÷ 8 = 1" which is an incorrect result. The 8 between x and ÷
was never input, nor is it evaluated.

EXPECTED RESULT
History should log the calculation as it was evaluated. In this example,
history should show "8 ÷ 8 = 1"

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kernel 6.4.3
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to