Skip to content
Permalink
Browse files

fix typos

  • Loading branch information
jef-n committed Feb 25, 2016
1 parent d6c8a1a commit 93ba5cd97bd70509109c08113b6d8c04f36433d6
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/core/qgsexpression.cpp
  2. +1 −1 src/gui/editorwidgets/qgsexternalresourceconfigdlg.cpp
@@ -4553,9 +4553,9 @@ void QgsExpression::initVariableHelp()
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." ) );
gVariableHelpTexts.insert( "map_rotation", QCoreApplication::translate( "variable_help", "Current rotation of map." ) );
gVariableHelpTexts.insert( "map_scale", QCoreApplication::translate( "variable_help", "Current scale of map." ) );
gVariableHelpTexts.insert( "map_extent_center", QCoreApplication::translate( "variable_help", "Center of of map." ) );
gVariableHelpTexts.insert( "map_extent_width", QCoreApplication::translate( "variable_help", "Width of of map." ) );
gVariableHelpTexts.insert( "map_extent_height", QCoreApplication::translate( "variable_help", "Height of of map." ) );
gVariableHelpTexts.insert( "map_extent_center", QCoreApplication::translate( "variable_help", "Center of map." ) );
gVariableHelpTexts.insert( "map_extent_width", QCoreApplication::translate( "variable_help", "Width of map." ) );
gVariableHelpTexts.insert( "map_extent_height", QCoreApplication::translate( "variable_help", "Height of map." ) );

gVariableHelpTexts.insert( "row_number", QCoreApplication::translate( "variable_help", "Stores the number of the current row." ) );
gVariableHelpTexts.insert( "grid_number", QCoreApplication::translate( "variable_help", "Current grid annotation value." ) );
@@ -32,7 +32,7 @@ QgsExternalResourceConfigDlg::QgsExternalResourceConfigDlg( QgsVectorLayer* vl,
mFullUrl->setChecked( false );
mDocumentViewerGroupBox->setChecked( false );

QString defpath = QgsProject::instance()->fileName().isEmpty() ? QDir::currentPath() : QgsProject::instance()->fileInfo().absolutePath();
QString defpath = QgsProject::instance()->fileName().isEmpty() ? QDir::homePath() : QgsProject::instance()->fileInfo().absolutePath();

mRootPath->setPlaceholderText( QSettings().value( "/UI/lastExternalResourceWidgetDefaultPath", QDir::toNativeSeparators( QDir::cleanPath( defpath ) ) ).toString() );

0 comments on commit 93ba5cd

Please sign in to comment.
You can’t perform that action at this time.