diff options
Diffstat (limited to 'map-widget')
-rw-r--r-- | map-widget/qmlmapwidgethelper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/map-widget/qmlmapwidgethelper.cpp b/map-widget/qmlmapwidgethelper.cpp index 61b8f0abe..b13c047e7 100644 --- a/map-widget/qmlmapwidgethelper.cpp +++ b/map-widget/qmlmapwidgethelper.cpp @@ -246,10 +246,8 @@ void MapWidgetHelper::copyToClipboardCoordinates(QGeoCoordinate coord, bool form bool savep = prefs.coordinates_traditional; prefs.coordinates_traditional = formatTraditional; location_t location = mk_location(coord); - char *coordinates = printGPSCoords(&location); - QApplication::clipboard()->setText(QString(coordinates), QClipboard::Clipboard); + QApplication::clipboard()->setText(printGPSCoords(&location), QClipboard::Clipboard); - free(coordinates); prefs.coordinates_traditional = savep; } |