File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -354,11 +354,9 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
354
354
#include <gdal_version.h>
355
355
#if PROJ_VERSION_MAJOR > 4
356
356
#include <proj.h>
357
- #endif
358
- #ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
359
- #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
360
- #endif
357
+ #else
361
358
#include <proj_api.h>
359
+ #endif
362
360
363
361
//
364
362
// Other includes
@@ -4511,8 +4509,8 @@ void QgisApp::about()
4511
4509
4512
4510
#if PROJ_VERSION_MAJOR > 4
4513
4511
PJ_INFO info = proj_info();
4514
- versionString += "<td>" + tr( "Compiled against PROJ" ) + "</td><td>" + QString::number( PJ_VERSION ) + "</td>" ;
4515
- versionString += "<td>" + tr( "Running against PROJ" ) + "</td><td>" + info.version + "</td>" ;
4512
+ versionString += "<td>" + tr( "Compiled against PROJ" ) + QStringLiteral( "</td><td>%1.%2.%3</td>" ).arg( PROJ_VERSION_MAJOR ).arg( PROJ_VERSION_MINOR ).arg( PROJ_VERSION_PATCH ) ;
4513
+ versionString += "<td>" + tr( "Running against PROJ" ) + QStringLiteral( "</td><td>%1.%2.%3</td>" ).arg( info.major ).arg( info.minor ).arg( info.patch ) ;
4516
4514
#else
4517
4515
versionString += "<td>" + tr( "PROJ.4 Version" ) + "</td><td colspan=3>" + QString::number( PJ_VERSION ) + "</td>";
4518
4516
#endif
You can’t perform that action at this time.
0 commit comments