Howdy devs,

Last night I was looking through the QgsRasterLayer code and noticed a typo in the DrawingStyle enum that made it in during the major renaming efforts (r9564 & r9566) just before version 1.0 was released.

MultiBandSingleGandGray should be MultiBandsingleBandGray

Question is how do we go about fixing it and preserving compatibility?

I was thinking we would need to:
1) add the correctly spelled enum
2) use both enums where ever the incorrect one appears, example
if( QgsRasterLayer::MultiBandSingleGandGray )
becomes
if( QgsRasterLayer::MultiBandSingleGandGray || QgsRasterLayer::MultiBandsingleBandGray )
3) Wait until v2.0 to drop MultiBandSingleGandGray enum

-pete

--
====================================
Peter J. Ersts, Software Developer
American Museum of Natural History
Center for Biodiversity and Conservation
Central Park West at 79th Street
New York, New York 10024
Web: http://biodiversityinformatics.amnh.org
Web: http://cbc.amnh.org

Open Source,
...evolving through community cooperation to change the world bit by bit

Quantum GIS Raster Development Team.

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to