Skip to content

Commit d6c8a1a

Browse files
committed
add help for map_extent_center, map_extent_width and map_extent_height (fixes #14259, followup e7b9a31)
1 parent 9f7c329 commit d6c8a1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsexpression.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -4553,6 +4553,9 @@ void QgsExpression::initVariableHelp()
45534553
gVariableHelpTexts.insert( "map_id", QCoreApplication::translate( "variable_help", "ID of current map destination. This will be 'canvas' for canvas renders, and the item ID for composer map renders." ) );
45544554
gVariableHelpTexts.insert( "map_rotation", QCoreApplication::translate( "variable_help", "Current rotation of map." ) );
45554555
gVariableHelpTexts.insert( "map_scale", QCoreApplication::translate( "variable_help", "Current scale of map." ) );
4556+
gVariableHelpTexts.insert( "map_extent_center", QCoreApplication::translate( "variable_help", "Center of of map." ) );
4557+
gVariableHelpTexts.insert( "map_extent_width", QCoreApplication::translate( "variable_help", "Width of of map." ) );
4558+
gVariableHelpTexts.insert( "map_extent_height", QCoreApplication::translate( "variable_help", "Height of of map." ) );
45564559

45574560
gVariableHelpTexts.insert( "row_number", QCoreApplication::translate( "variable_help", "Stores the number of the current row." ) );
45584561
gVariableHelpTexts.insert( "grid_number", QCoreApplication::translate( "variable_help", "Current grid annotation value." ) );

0 commit comments

Comments
 (0)