Skip to content
Permalink
Browse files

fix size long options

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11173 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jul 24, 2009
1 parent a20da46 commit fde0c6f5c44ff90c28acc5255098873eff491b93
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/main.cpp
@@ -296,8 +296,8 @@ int main( int argc, char *argv[] )
/* 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 @@ int main( int argc, char *argv[] )
{
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();
}

0 comments on commit fde0c6f

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