Skip to content
Permalink
Browse files

Workaround to make bug #2209 less likely

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12389 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 9, 2009
1 parent 56b66d6 commit e9883744fca5b6ff771776425e23bb9a35ac1cf4
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 e988374

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