Commit 49293fb4 authored by Marius Pa's avatar Marius Pa
Browse files

Use "bug #" in comments

parent e88662c5
Pipeline #171729 passed with stage
in 1 minute and 15 seconds
......@@ -2451,7 +2451,7 @@ void KCalculator::setColors()
KColorScheme schemeButtons(QPalette::Active, KColorScheme::Button);
const QColor defaultColor = schemeButtons.background().color();
// Do not apply style sheets when using default background colors, see bug 237513
// Do not apply style sheets when using default background colors, see bug #237513
if (KCalcSettings::numberButtonsColor() == defaultColor && KCalcSettings::functionButtonsColor() == defaultColor
&& KCalcSettings::statButtonsColor() == defaultColor && KCalcSettings::hexButtonsColor() == defaultColor
&& KCalcSettings::memoryButtonsColor() == defaultColor && KCalcSettings::operationButtonsColor() == defaultColor
......@@ -2874,7 +2874,8 @@ int main(int argc, char *argv[])
parser.process(app);
aboutData.processCommandLine(&parser);
// force system locale to "C" internally [bug 159168]
// Force system locale to "C" internally. Fix for bug #159168, showing multiple commas
// in floating point operations because of different thousands separator and comma separator.
setlocale(LC_NUMERIC, "C");
KNumber::setGroupSeparator(QLocale().groupSeparator());
......
......@@ -534,7 +534,7 @@ KNumber &KNumber::operator*=(const KNumber &rhs)
//------------------------------------------------------------------------------
KNumber &KNumber::operator/=(const KNumber &rhs)
{
// Fix for bug #330577, x /0 is undefined, not infinity
// Fix for bug #330577, x/0 is undefined, not infinity
// Also indirectly fixes bug #329897, tan(90) is undefined, not infinity
if (rhs == Zero) {
*this = NaN;
......@@ -713,8 +713,8 @@ KNumber KNumber::sqrt() const
//------------------------------------------------------------------------------
KNumber KNumber::pow(const KNumber &x) const
{
// Fix for bug #330711 (pow(0, -x) was causing crashes
// Fix for bug #330597 (pow(0,0) was 1 now it is NaN
// Fix for bug #330711, pow(0, -x) was causing crashes
// Fix for bug #330597, pow(0,0) was 1 now it is NaN
// Thanks to Raushan Kumar for identifying the issue and submitting
// patches
if (*this == Zero && x <= Zero) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment