| Summary: | Left-clicking in history pane messes up subsequent formatting | ||
|---|---|---|---|
| Product: | [Applications] kcalc | Reporter: | Rickard Westman <rwestman> |
| Component: | general | Assignee: | shenlebantongying <shenlebantongying> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kroot001, nate, shenlebantongying |
| Priority: | NOR | ||
| Version First Reported In: | 21.12.3 | ||
| Target Milestone: | --- | ||
| Platform: | Kubuntu | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/utilities/kcalc/commit/b45de2be468b74aa2d47583caf3801a52fa6bfaa | Version Fixed/Implemented In: | 23.04 |
| Sentry Crash Report: | |||
| Attachments: |
Screenshot showing garbled history output
KCalc history with line breaks between calculations |
||
|
Description
Rickard Westman
2023-01-13 12:11:27 UTC
I can confirm this bug exists, but it looks so weird. What changed after the history panel got clicked? *** Bug 452061 has been marked as a duplicate of this bug. *** Created attachment 155771 [details]
KCalc history with line breaks between calculations
Thank you! This has been bugging me for some time but could not locate what caused the behavior.
I played around with it and it looks like the line break is inserted where the user last clicked in the history pane and the calculation add to the top. I was able to insert line breaks in between previous calculations this way.
I proposed a fix last week, but nobody seems to have time to review it yet, https://invent.kde.org/utilities/kcalc/-/merge_requests/55 (In reply to shenlebantongying from comment #4) > I proposed a fix last week, but nobody seems to have time to review it yet, > > https://invent.kde.org/utilities/kcalc/-/merge_requests/55 For what it's worth, I tested your fix locally and it has resolved the issue. Git commit b45de2be468b74aa2d47583caf3801a52fa6bfaa by Joshua Goins, on behalf of shenleban tongying. Committed on 31/01/2023 at 12:51. Pushed by redstrate into branch 'master'. fix: insert new contents to correct locations Co-authored-by: Joshua Goins <josh@redstrate.com> M +11 -0 kcalchistory.cpp https://invent.kde.org/utilities/kcalc/commit/b45de2be468b74aa2d47583caf3801a52fa6bfaa |