[Goodies-dev] [Bug 11604] Remove negative sign when temperature is 0° F
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Fri Mar 6 22:59:49 CET 2015
https://bugzilla.xfce.org/show_bug.cgi?id=11604
Josh <j42hurt at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #6019|0 |1
is obsolete| |
--- Comment #13 from Josh <j42hurt at gmail.com> ---
Created attachment 6044
--> https://bugzilla.xfce.org/attachment.cgi?id=6044&action=edit
Added macro function to handle calculation of temperature from Celcius to
Fahrenheit while also preventing -0F from being displayed to the user.
I thought Harald's idea of just setting temperature to 0 rather than
incrementing it by 0.5 is an easier to understand fix. I moved the code that
calculates the Fahrenheit temperature to a macro as per his request as well. I
made sure to leave a nice comment for future devs explaining exactly why that
macro is there and where it's used.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Goodies-dev
mailing list