Skip to content
Permalink
Browse files

fix filters in Save as Image

git-svn-id: http://svn.osgeo.org/qgis/trunk@13288 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Apr 8, 2010
1 parent 348caa3 commit c5b9aa5ddaa5785cb71bd9bd137815d52e97b09d
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/app/qgisapp.cpp
@@ -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_


@@ -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;
@@ -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;
}

0 comments on commit c5b9aa5

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