Summary: | Always reports a Sandstorm in Sydney (YSSY) - probably other funnies elsewhere | ||
---|---|---|---|
Product: | [Applications] kweather-kde3 | Reporter: | Cris <c.bailiff+kdebugs> |
Component: | general | Assignee: | geiseri |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mandrake RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | bugfix patch |
Description
Cris
2003-03-28 02:53:23 UTC
Theory confirmed - I found that ESSL (Linkoping-saab, in Sweden) which is having a misty winters day, is also having a sandstom. Cheers. Created attachment 1432 [details]
bugfix patch
I could reproduce the bug when the icao code was in lowercase or had additional
white spaces. The existing check in WeatherLib::processData() to not parse the
icao location didn't work anymore. The attached patch should fix this.
Christian Loose
Subject: kdetoys/kweather CVS commit by geiseri: Applied patch from Christian Loose. This should fix bug #56524. Thanks Christian, I love one liners :) Nadeem, are you still running 3.1 that you can backport this? Otherwise I will. CCMAIL: christian.loose@hamburg.de CCMAIL: 56524-done@bugs.kde.org CCMAIL: Nadeem Hasan <nhasan@nadmm.com> M +1 -1 weatherlib.cpp 1.59 --- kdetoys/kweather/weatherlib.cpp #1.58:1.59 @@ -723,5 +723,5 @@ void WeatherLib::processData(QString met // Don't try to parse the ICAO location code - if ((!found) && (*it == d->reportLocation)) + if ((!found) && (*it == d->reportLocation.upper().stripWhiteSpace())) { found = true; |