digit transformed into exponent if moving between typing of two *

Bug #1800284 reported by Pierre-Olivier Vares
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Calculator
Fix Released
Unknown
gnome-calculator (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Open gnome-calculator

Write (or compute) a number, let's type 9×9×9×9×9×9×9×9×9×9×9×9, enter.
Or type directly 282429536481.

What is observed :

Now, We'll (try) to compute the product of all the digits.
So move the caret after the first digit, type *
Result (OK) : 2x|82429536481
Move right : 2x8|2429536481
Type another *, and observe, rather than adding a multiply sign, the digit is transformed into an exponent sign :
   2x^|2429536481

What should be observed :
   2x8x|2429536481

If you type anything else (like pressing space and deleting it), the bug doesn't occur.

The bug is probably due to a bad test for converting ** into ^ :
- first, it should detect that another key (arrow, shortcut, and even simple modifier should be counted as other keys) has been pressed. Or it should be based on the character preceding the caret, not the one previously pressed.
- in any case, it should never replace anything than a *

$ apt show gnome-calculator
Package: gnome-calculator
Version: 3.22.3-1
Priority: optional
Section: math
Maintainer: Debian GNOME Maintainers <email address hidden>
Installed-Size: 5 691 kB

Revision history for this message
Sebastien Bacher (seb128) wrote :

Indeed, that's still an issue in the current version and seems an upstream one. Could you maybe report it to them as well on https://gitlab.gnome.org/GNOME/gnome-calculator/issues ?

Changed in gnome-calculator (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Pierre-Olivier Vares (yopai) wrote :

Hi, thanks for your interest.

Bug reported as asked :

https://gitlab.gnome.org/GNOME/gnome-calculator/issues/91

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks!

Changed in gnome-calculator (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

The bug has been fixed in the current version

Changed in gnome-calculator (Ubuntu):
status: Triaged → Fix Released
Changed in gnome-calculator:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.