Skip to content

Commit

Permalink
Fix QgsMultiRenderChecker when running on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 21, 2016
1 parent 4fb6b67 commit a212fac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/core/qgsrenderchecker.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsrenderchecker.h
Expand Up @@ -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 );
Expand Down

0 comments on commit a212fac

Please sign in to comment.