Description of problem: kcalc calculates cos(0)=0 if deg/rad/grad is left on initial deg Version-Release number of selected component (if applicable): kdeutils-4.2.0-1.fc10.x86_64 How reproducible: random: probably depends on random memory Steps to Reproduce: 1. start kcalc: display says "0" 2. enable Settings->science: display says "deg" 3. click "cos" button 4. get answer 0 which is the result of a "cos" of the initial "0" in degrees 5. click on rad 6. click on deg 7. click "cos" button 8. get correct answer 1 Actual results: answer 0 first time (step 4), answer 1 second time (step 8) Expected results: answer 1 both times Additional info: Looks like _angle_mode is never initialised in the code even though "deg" button is selected on startup
Thank you for the bug report. This issue needs to be addressed by the upstream developers. Please submit a report at http://bugs.kde.org. You are requested to add the bugzilla link here for tracking purposes. Please make sure the bug isn't already in the upstream bug tracker before filing it.
Searched and submitted https://bugs.kde.org/show_bug.cgi?id=185734 ... now resolved. Later found to be duplicate of https://bugs.kde.org/show_bug.cgi?id=181875 which was resolved by SVN commit 919386: "BUG: 181875 kcalc was not initializing the angle mode. This caused the trig functions to be noops. The fix was to save/restore the angle mode as a configuration item. The angle mode is now initialized from the config. Also did the same for the numeric base"
OK, should be fixed in kdeutils-4.2.1 then, pushed to stable updates yesterday.
Right, 4.2 branch commit here: http://websvn.kde.org/?view=rev&revision=919387 This went into 4.2.1.