| Summary: | GPS Sync: altitude shown is wrong | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Fabien <fabien.ubuntu> |
| Component: | Plugin-Generic-GeolocationEdit | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.1.0 | |
| Sentry Crash Report: | |||
|
Description
Fabien
2006-09-27 16:02:12 UTC
Angelo : already done in bugzilla (:=)) Gilles SVN commit 589065 by cgilles:
kipi-plugins from trunk : fix GPS altitude value extraction.
BUG: 134749
M +2 -2 exiv2iface.cpp
--- trunk/extragear/libs/kipi-plugins/common/exiv2iface/exiv2iface.cpp #589064:589065
@@ -768,8 +768,8 @@
if (altRef.isEmpty()) return false;
QString alt = getExifTagString("Exif.GPSInfo.GPSAltitude");
if (alt.isEmpty()) return false;
- num = rational.section("/", 0, 0);
- den = rational.section("/", 1, 1);
+ num = alt.section("/", 0, 0);
+ den = alt.section("/", 1, 1);
altitude = num.toDouble()/den.toDouble();
if (altRef == "1") altitude *= -1.0;
Thanks ! |