Skip to content

Commit d083bd6

Browse files
committed
fix build with Qt < 4.8
1 parent 28e210b commit d083bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/symbology-ng/qgssvgcache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ QByteArray QgsSvgCache::getImageData( const QString &path ) const
230230
}
231231

232232
// check whether it's a url pointing to a local file
233-
if ( svgUrl.isLocalFile() )
233+
if ( svgUrl.scheme().compare( "file", Qt::CaseInsensitive ) == 0 )
234234
{
235235
svgFile.setFileName( svgUrl.toLocalFile() );
236236
if ( svgFile.exists() )

0 commit comments

Comments
 (0)