Skip to content

Commit

Permalink
fix filters in Save as Image
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13288 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 8, 2010
1 parent 348caa3 commit c5b9aa5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/qgisapp.cpp
Expand Up @@ -2470,7 +2470,7 @@ void QgisApp::about()
*/
static QString createFileFilter_( QString const &longName, QString const &glob )
{
return longName + " (" + glob.toLower() + " " + glob.toUpper() + ");;";
return longName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
} // createFileFilter_


Expand Down Expand Up @@ -3575,7 +3575,6 @@ void QgisApp::saveMapAsImage()
QString myLastUsedFilter = myQSettings.value( "/UI/saveAsImageFilter" ).toString();
QString myLastUsedDir = myQSettings.value( "/UI/lastSaveAsImageDir", "." ).toString();


// get a list of supported output image types
int myCounterInt = 0;
QString myFilters;
Expand All @@ -3585,8 +3584,12 @@ void QgisApp::saveMapAsImage()
{
QString myFormat = QString( formats.at( myCounterInt ) );
//svg doesnt work so skip it
if ( myFormat == "svg" ) continue;
if ( myFormat == "svg" )
continue;

QString myFilter = createFileFilter_( myFormat + " format", "*." + myFormat );
if( !myFilters.isEmpty() )
myFilters += ";;";
myFilters += myFilter;
myFilterMap[myFilter] = myFormat;
}
Expand Down

0 comments on commit c5b9aa5

Please sign in to comment.