File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2470,7 +2470,7 @@ void QgisApp::about()
2470
2470
*/
2471
2471
static QString createFileFilter_ ( QString const &longName, QString const &glob )
2472
2472
{
2473
- return longName + " (" + glob.toLower () + " " + glob.toUpper () + " );; " ;
2473
+ return longName + " (" + glob.toLower () + " " + glob.toUpper () + " )" ;
2474
2474
} // createFileFilter_
2475
2475
2476
2476
@@ -3575,7 +3575,6 @@ void QgisApp::saveMapAsImage()
3575
3575
QString myLastUsedFilter = myQSettings.value ( " /UI/saveAsImageFilter" ).toString ();
3576
3576
QString myLastUsedDir = myQSettings.value ( " /UI/lastSaveAsImageDir" , " ." ).toString ();
3577
3577
3578
-
3579
3578
// get a list of supported output image types
3580
3579
int myCounterInt = 0 ;
3581
3580
QString myFilters;
@@ -3585,8 +3584,12 @@ void QgisApp::saveMapAsImage()
3585
3584
{
3586
3585
QString myFormat = QString ( formats.at ( myCounterInt ) );
3587
3586
// svg doesnt work so skip it
3588
- if ( myFormat == " svg" ) continue ;
3587
+ if ( myFormat == " svg" )
3588
+ continue ;
3589
+
3589
3590
QString myFilter = createFileFilter_ ( myFormat + " format" , " *." + myFormat );
3591
+ if ( !myFilters.isEmpty () )
3592
+ myFilters += " ;;" ;
3590
3593
myFilters += myFilter;
3591
3594
myFilterMap[myFilter] = myFormat;
3592
3595
}
You can’t perform that action at this time.
0 commit comments