Inconsistent behaviour when entering after startup or display clear

Bug #348699 reported by Tiefflieger
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GCalctool
Fix Released
Medium
gcalctool (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gcalctool

I'm using the scientific view of the calculator on Jaunty.

When I start gcalc, I can't compute a cosinus (others maybe as well, haven't tested)
Steps to reproduce:
Start gcalc -> enter "3" , "0" -> press "cos" -> press "=" => error
Start gcalc -> press "cos" -> enter "3" , "0" -> press "=" => error
It's important to do this right after the start of gcalc

See attached screen capture

Related branches

Revision history for this message
Tiefflieger (tiefflieger) wrote :
Revision history for this message
Paul Dufresne (paulduf) wrote :

I think what the software expects is:
press "cos" -> enter "3" , "0" -> press ")" -> press "=" => 0,866025404

Revision history for this message
Tiefflieger (tiefflieger) wrote :

Like I said, it's important to do this right after the start of gcalc.
When I press "cos" right after the start, the display says "cos(0)", all succeeding operations, e.g. like those you proposed, before "=" will cause an error. See attachment.

If I do the same after some calculations, gcalc behaves just as expected and I can enter commands like you said.

Revision history for this message
Paul Dufresne (paulduf) wrote :

Indeed, I am confirming this on Jaunty.
ii gcalctool 5.26.0-0ubuntu1

Changed in gcalctool:
status: New → Confirmed
Revision history for this message
Paul Dufresne (paulduf) wrote :

And it seems to affect all functions that would normally opens a "(".
After starting gcalc, "0)" is automatically added after the "(".

Revision history for this message
Tiefflieger (tiefflieger) wrote :

I think the problem is that after the start, gcalc internally stores "0" as last computed result.
If you compute something, press "=", then you get the result. If you press "cos" right after that, cosinus will use the value just computed in the last computation.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

Thank you for your bug report. This bug has been reported to the developers of the software. You can track it and make comments at:
http://bugzilla.gnome.org/show_bug.cgi?id=576975

Changed in gcalctool:
importance: Undecided → Low
status: Confirmed → Triaged
Changed in gcalctool:
status: Unknown → Confirmed
Changed in gcalctool:
status: Confirmed → Fix Released
summary: - cosinus right after startup won't work
+ Inconsistent behaviour when entering after startup or display clear
Changed in gcalctool (Ubuntu):
status: Triaged → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcalctool - 5.27.1-0ubuntu1

---------------
gcalctool (5.27.1-0ubuntu1) karmic; urgency=low

  [ Robert Ancell ]
  * New upstream release (LP: #373095)
    - Convert Glade UI to GtkBuilder UI
    - Fix display on startup to be replaced on entry (LP: #348699)
    - Make GConf schemas translatable
    - Replace MP number arrays with an MPNumber structure
    - Tidied up error messages
    - Tidied up GConf schema, use native GConf types, the following settings will
      be reset after upgrade:
      - The initial window position
      - The visibility of trailing zeros
      - The visibility of thousands separators
      - The visibility of the register window
    - Updated translations

  * Merge from Debian unstable (5.24.3.1-1). Remaining Ubuntu changes
    - Launchpad integration:
      + debian/control.in: Build-Depends on launchpad-integration
      + inclusion of debian/patches/01_lpi.patch and
        debian/patches/99_autoconf.patch
    - debian/control.in: Add VCS link
    - debian/control.in: Remove dependency on Glade
    - debian/control: Rebuilt with contro.in changes

  [ Daniel Holbach ]
  * debian/watch: track current unstable release too.

 -- Robert Ancell <email address hidden> Mon, 11 May 2009 16:02:16 +1000

Changed in gcalctool (Ubuntu):
status: Fix Committed → Fix Released
Changed in gcalctool:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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