Verified Commit df8235a0 authored by Antonio Prcela's avatar Antonio Prcela 🏞
Browse files

Add missing sin, sinh, arcsin for history text

parent 1ddd02a0
...@@ -1006,13 +1006,16 @@ void KCalculator::slotSinclicked() ...@@ -1006,13 +1006,16 @@ void KCalculator::slotSinclicked()
if (hyp_mode_) { if (hyp_mode_) {
// sinh or arsinh // sinh or arsinh
if (!shift_mode_) { if (!shift_mode_) {
calc_history->addFuncToHistory(QStringLiteral("sinh"));
core.SinHyp(calc_display->getAmount()); core.SinHyp(calc_display->getAmount());
} else { } else {
calc_history->addFuncToHistory(QStringLiteral("arcsin"));
core.AreaSinHyp(calc_display->getAmount()); core.AreaSinHyp(calc_display->getAmount());
} }
} else { } else {
// sine or arcsine // sine or arcsine
if (!shift_mode_) { if (!shift_mode_) {
calc_history->addFuncToHistory(QStringLiteral("sin"));
switch (angle_mode_) { switch (angle_mode_) {
case DegMode: case DegMode:
core.SinDeg(calc_display->getAmount()); core.SinDeg(calc_display->getAmount());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment