Skip to content
Permalink
Browse files

Make project file transform for rasters between 1.8 and 1.9

  • Loading branch information
mhugent committed Jun 14, 2012
1 parent 966c5c1 commit 9275f8e0d92afb281a8c1a0b7cca1b7a4afd5c3b
Showing with 4 additions and 3 deletions.
  1. +3 −2 src/core/qgsprojectfiletransform.cpp
  2. +1 −1 src/core/qgsprojectfiletransform.h
@@ -49,7 +49,8 @@ QgsProjectFileTransform::transform QgsProjectFileTransform::transformers[] =
{PFV( 1, 4, 0 ), PFV( 1, 5, 0 ), &QgsProjectFileTransform::transform1400to1500},
{PFV( 1, 5, 0 ), PFV( 1, 6, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 6, 0 ), PFV( 1, 7, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 7, 0 ), PFV( 1, 8, 0 ), &QgsProjectFileTransform::transform1700to1800}
{PFV( 1, 7, 0 ), PFV( 1, 8, 0 ), &QgsProjectFileTransform::transformNull},
{PFV( 1, 8, 0 ), PFV( 1, 9, 0 ), &QgsProjectFileTransform::transform1800to1900}
};

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

void QgsProjectFileTransform::transform1700to1800()
void QgsProjectFileTransform::transform1800to1900()
{
if ( mDom.isNull() )
{
@@ -84,7 +84,7 @@ class QgsProjectFileTransform
void transform0110to1000();
void transform1100to1200();
void transform1400to1500();
void transform1700to1800();
void transform1800to1900();

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

0 comments on commit 9275f8e

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