GNOME Bugzilla – Bug 696909
subtract button inserts additional minus
Last modified: 2013-04-02 14:16:06 UTC
Created attachment 240169 [details] [review] removed a few lines from math-buttons.vala connecting calc_subtract_button with equation.insert_subtract Clicking on "-" button (calc_subtract_button) with mouse causes two minus characters to be inserted into the calculator display field. It doesn't happen with a keyboard input though. Not connecting calc_subtract_button with equation.insert_subtract fixes it for me but I'm not sure if that's the right thing to do. (see attached patch) Tested on Lubuntu i386 13.04 Raring Ringtail (development branch) Tested against: GNOME_CALCULATOR_3_7_2 GNOME_CALCULATOR_3_8_0 master (ca27408) I couldn't repeat it on older versions like gcalctool 6.6.0 - it seam to work fine.
Review of attachment 240169 [details] [review]: This solves the dual insertion bug, but breaks minus button behaviour with superscript mode on.
Created attachment 240382 [details] [review] Fix Subtract button inserts additional minus Paul B, Thank you for your report, and a possible solution. For future references, this is the actual solution to the bug. :)
Review of attachment 240382 [details] [review]: Committed.