Skip to content
Permalink
Browse files
fix html mesh layer when editing (#44153)
  • Loading branch information
vcloarec committed Jul 14, 2021
1 parent e93b19f commit 2c6d6d8aa2f59d4f32bbac5cd1f7de9045465063
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/mesh/qgsmeshlayer.cpp
@@ -1532,19 +1532,19 @@ QString QgsMeshLayer::htmlMetadata() const
{
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" )
+ tr( "Vertex count" ) + QStringLiteral( "</td><td>" )
+ ( locale.toString( static_cast<qlonglong>( dataProvider()->vertexCount() ) ) )
+ ( locale.toString( static_cast<qlonglong>( meshVertexCount() ) ) )
+ QStringLiteral( "</td></tr>\n" );
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" )
+ tr( "Face count" ) + QStringLiteral( "</td><td>" )
+ ( locale.toString( static_cast<qlonglong>( dataProvider()->faceCount() ) ) )
+ ( locale.toString( static_cast<qlonglong>( meshFaceCount() ) ) )
+ QStringLiteral( "</td></tr>\n" );
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" )
+ tr( "Edge count" ) + QStringLiteral( "</td><td>" )
+ ( locale.toString( static_cast<qlonglong>( dataProvider()->edgeCount() ) ) )
+ ( locale.toString( static_cast<qlonglong>( meshEdgeCount() ) ) )
+ QStringLiteral( "</td></tr>\n" );
myMetadata += QStringLiteral( "<tr><td class=\"highlight\">" )
+ tr( "Dataset groups count" ) + QStringLiteral( "</td><td>" )
+ ( locale.toString( static_cast<qlonglong>( dataProvider()->datasetGroupCount() ) ) )
+ ( locale.toString( static_cast<qlonglong>( datasetGroupCount() ) ) )
+ QStringLiteral( "</td></tr>\n" );
}

0 comments on commit 2c6d6d8

Please sign in to comment.