Skip to content
Permalink
Browse files

Fix QgsMultiRenderChecker when running on Windows

  • Loading branch information
nyalldawson committed Jan 21, 2016
1 parent 4fb6b67 commit a212fac0079b7099f770b6a7dc9842ca88379a9c
Showing with 9 additions and 1 deletion.
  1. +8 −0 src/core/qgsrenderchecker.cpp
  2. +1 −1 src/core/qgsrenderchecker.h
@@ -57,6 +57,14 @@ void QgsRenderChecker::setControlName( const QString &theName )
mExpectedImageFile = controlImagePath() + theName + '/' + mControlPathSuffix + theName + ".png";
}

void QgsRenderChecker::setControlPathSuffix( const QString& theName )
{
if ( !theName.isEmpty() )
mControlPathSuffix = theName + '/';
else
mControlPathSuffix.clear();
}

QString QgsRenderChecker::imageToHash( const QString& theImageFile )
{
QImage myImage;
@@ -69,7 +69,7 @@ class CORE_EXPORT QgsRenderChecker
*/
void setControlPathPrefix( const QString &theName ) { mControlPathPrefix = theName + '/'; }

void setControlPathSuffix( const QString& theName ) { mControlPathSuffix = theName + '/'; }
void setControlPathSuffix( const QString& theName );

/** Get an md5 hash that uniquely identifies an image */
QString imageToHash( const QString& theImageFile );

0 comments on commit a212fac

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