[QGIS Commit] r11173 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Jul 24 09:54:32 EDT 2009
Author: jef
Date: 2009-07-24 09:54:32 -0400 (Fri, 24 Jul 2009)
New Revision: 11173
Modified:
trunk/qgis/src/app/main.cpp
Log:
fix size long options
Modified: trunk/qgis/src/app/main.cpp
===================================================================
--- trunk/qgis/src/app/main.cpp 2009-07-24 13:41:24 UTC (rev 11172)
+++ trunk/qgis/src/app/main.cpp 2009-07-24 13:54:32 UTC (rev 11173)
@@ -296,8 +296,8 @@
/* These options don't set a flag.
* We distinguish them by their indices. */
{"snapshot", required_argument, 0, 's'},
- {"width", required_argument, 0, 'w'},
- {"height", required_argument, 0, 'h'},
+ {"width", required_argument, 0, 'w'},
+ {"height", required_argument, 0, 'h'},
{"lang", required_argument, 0, 'l'},
{"project", required_argument, 0, 'p'},
{"extent", required_argument, 0, 'e'},
@@ -398,11 +398,11 @@
{
mySnapshotFileName = QDir::convertSeparators( QFileInfo( QFile::decodeName( argv[++i] ) ).absoluteFilePath() );
}
- else if ( i + 1 < argc && ( arg == "-width" || arg == "-w" ) )
+ else if ( i + 1 < argc && ( arg == "--width" || arg == "-w" ) )
{
mySnapshotWidth = QString( argv[++i] ).toInt();
}
- else if ( i + 1 < argc && ( arg == "-height" || arg == "-h" ) )
+ else if ( i + 1 < argc && ( arg == "--height" || arg == "-h" ) )
{
mySnapshotHeight = QString( argv[++i] ).toInt();
}
More information about the QGIS-commit
mailing list