Skip to content

Commit a212fac

Browse files
committedJan 21, 2016
Fix QgsMultiRenderChecker when running on Windows
1 parent 4fb6b67 commit a212fac

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
 

‎src/core/qgsrenderchecker.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ void QgsRenderChecker::setControlName( const QString &theName )
5757
mExpectedImageFile = controlImagePath() + theName + '/' + mControlPathSuffix + theName + ".png";
5858
}
5959

60+
void QgsRenderChecker::setControlPathSuffix( const QString& theName )
61+
{
62+
if ( !theName.isEmpty() )
63+
mControlPathSuffix = theName + '/';
64+
else
65+
mControlPathSuffix.clear();
66+
}
67+
6068
QString QgsRenderChecker::imageToHash( const QString& theImageFile )
6169
{
6270
QImage myImage;

‎src/core/qgsrenderchecker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class CORE_EXPORT QgsRenderChecker
6969
*/
7070
void setControlPathPrefix( const QString &theName ) { mControlPathPrefix = theName + '/'; }
7171

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.