Skip to content

Commit

Permalink
Use formatting that matches existing derived attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kannes authored and pull[bot] committed Nov 13, 2023
1 parent 01b1531 commit 1448031
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/qgsmaptoolidentify.cpp
Expand Up @@ -1080,11 +1080,11 @@ bool QgsMapToolIdentify::identifyRasterLayer( QList<IdentifyResult> *results, Qg
const int rasterRow = static_cast< int >( std::floor( ( extent.yMaximum() - point.y() ) / yres ) );

#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
derivedAttributes.unite( tr( "Clicked raster column" ), QLocale().toString( rasterCol ) );
derivedAttributes.unite( tr( "Clicked raster row" ), QLocale().toString( rasterRow ) );
derivedAttributes.unite( tr( "(clicked raster column)" ), QLocale().toString( rasterCol ) );
derivedAttributes.unite( tr( "(clicked raster row)" ), QLocale().toString( rasterRow ) );
#else
derivedAttributes.insert( tr( "Clicked raster column" ), QLocale().toString( rasterCol ) );
derivedAttributes.insert( tr( "Clicked raster row" ), QLocale().toString( rasterRow ) );
derivedAttributes.insert( tr( "(clicked raster column)" ), QLocale().toString( rasterCol ) );
derivedAttributes.insert( tr( "(clicked raster row)" ), QLocale().toString( rasterRow ) );
#endif
}
}
Expand Down

0 comments on commit 1448031

Please sign in to comment.