Skip to content
Permalink
Browse files

Workaround to make bug #2209 less likely

git-svn-id: http://svn.osgeo.org/qgis/trunk@12389 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 9, 2009
1 parent 40a35f7 commit 0c462e875cd779640093c520ccc7f50fc3f970f7
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/composer/qgscomposerpicturewidget.cpp
@@ -462,6 +462,13 @@ void QgsComposerPictureWidget::addStandardDirectoriesToPreview()

bool QgsComposerPictureWidget::testSvgFile( const QString& filename ) const
{
//QSvgRenderer crashes with some (non-svg) xml documents.
//So at least we try to sort out the ones with different suffixes
if(!filename.endsWith(".svg"))
{
return false;
}

QSvgRenderer svgRenderer( filename );
if ( svgRenderer.isValid() )
{

0 comments on commit 0c462e8

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