Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit d238c531 authored by Laurent Montel's avatar Laurent Montel 😁

Fix toString() function

parent 3d63f38d
......@@ -50,7 +50,11 @@ float ContactGrantleePrintGeoObject::longitude() const
QString ContactGrantleePrintGeoObject::toString() const
return mGeo.toString();
QString result;
if (mGeo.isValid()) {
result = QString::fromLatin1("%1 %2, %3 %2").arg(mGeo.latitude()).arg(QChar(176)).arg(mCoordinates.longitude());
return result;
bool ContactGrantleePrintGeoObject::isValid() const
Markdown is supported
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