Skip to content

Commit de9ca74

Browse files
authored
Merge pull request #9702 from 3nids/release36_proj
fix proj on 3.6
2 parents 60c4a5e + de92b6e commit de9ca74

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/qgisapp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4511,8 +4511,8 @@ void QgisApp::about()
45114511

45124512
#ifdef PROJ_HAS_INFO
45134513
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>";
4514+
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 );
4515+
versionString += "<td>" + tr( "Running against PROJ" ) + QStringLiteral( "</td><td>%1</td>" ).arg( info.release );
45164516
#else
45174517
versionString += "<td>" + tr( "PROJ.4 Version" ) + "</td><td colspan=3>" + QString::number( PJ_VERSION ) + "</td>";
45184518
#endif

src/core/processing/qgsprocessingfeedback.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void QgsProcessingFeedback::pushVersionInfo()
6767

6868
#if PROJ_VERSION_MAJOR > 4
6969
PJ_INFO info = proj_info();
70-
pushDebugInfo( tr( "PROJ version: %1.%2.%3" ).arg( PROJ_VERSION_MAJOR ).arg( PROJ_VERSION_MINOR ).arg( PROJ_VERSION_PATCH );
70+
pushDebugInfo( tr( "PROJ version: %1" ).arg( info.release ) );
7171
#else
7272
pushDebugInfo( tr( "PROJ version: %1" ).arg( PJ_VERSION ) );
7373
#endif

0 commit comments

Comments
 (0)