GNOME Bugzilla – Bug 728933
Switching base during calculation returns malformed expression
Last modified: 2014-06-10 20:34:07 UTC
Switching base during calculation returns malformed expression When switching base eg dec to hex or opposite during calculation it is impossible to use the converted result in further calculations with the new base - malformed expression error is returned
Hi there, Can you provide an example to reproduce the bug? And the exact version of Calculator you're using? Thank you.. :)
Using gnome-calculator 3.12.1 on ArchLinux Start calculator switch to decimal base type in: 4+7 <enter> result shown: 11 switch to hex base result shown: B type in: + 3 (in addition to the existing shown 'B' press enter malformed expression is shown
Additional note. I have pinned down the problem origin, but was unable to fix the issue. The problem is the iterators of tagged substring are getting reassigned to invalid indexes after call to TextBuffer.insert_with_tags (); from method reformat_ans (); in math-equation.vala.
Thank you for the bug report. The issue has been fixed, and will be available with next release of calculator. :) Reference commit : https://git.gnome.org/browse/gnome-calculator/commit/?id=9ff8396ca73eaade391acc9eceacc1fcfe774cfc