Skip to content

Commit 9275f8e

Browse files
committed
Make project file transform for rasters between 1.8 and 1.9
1 parent 966c5c1 commit 9275f8e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/core/qgsprojectfiletransform.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ QgsProjectFileTransform::transform QgsProjectFileTransform::transformers[] =
4949
{PFV( 1, 4, 0 ), PFV( 1, 5, 0 ), &QgsProjectFileTransform::transform1400to1500},
5050
{PFV( 1, 5, 0 ), PFV( 1, 6, 0 ), &QgsProjectFileTransform::transformNull},
5151
{PFV( 1, 6, 0 ), PFV( 1, 7, 0 ), &QgsProjectFileTransform::transformNull},
52-
{PFV( 1, 7, 0 ), PFV( 1, 8, 0 ), &QgsProjectFileTransform::transform1700to1800}
52+
{PFV( 1, 7, 0 ), PFV( 1, 8, 0 ), &QgsProjectFileTransform::transformNull},
53+
{PFV( 1, 8, 0 ), PFV( 1, 9, 0 ), &QgsProjectFileTransform::transform1800to1900}
5354
};
5455

5556
bool QgsProjectFileTransform::updateRevision( QgsProjectVersion newVersion )
@@ -454,7 +455,7 @@ void QgsProjectFileTransform::transform1400to1500()
454455
}
455456
}
456457

457-
void QgsProjectFileTransform::transform1700to1800()
458+
void QgsProjectFileTransform::transform1800to1900()
458459
{
459460
if ( mDom.isNull() )
460461
{

src/core/qgsprojectfiletransform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class QgsProjectFileTransform
8484
void transform0110to1000();
8585
void transform1100to1200();
8686
void transform1400to1500();
87-
void transform1700to1800();
87+
void transform1800to1900();
8888

8989
//helper functions
9090
static int rasterBandNumber( const QDomElement& rasterPropertiesElem, const QString bandName, QgsRasterLayer* rlayer );

0 commit comments

Comments
 (0)