mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
load default style if provider is gdal and if no style was given
This commit is contained in:
parent
df87ee9591
commit
66e3fcb6f3
@ -155,6 +155,14 @@ QgsRasterLayer::QgsRasterLayer( int dummy,
|
|||||||
bool loadDefaultStyleFlag = false ; // ???
|
bool loadDefaultStyleFlag = false ; // ???
|
||||||
setDataProvider( providerKey, layers, styles, format, crs, loadDefaultStyleFlag );
|
setDataProvider( providerKey, layers, styles, format, crs, loadDefaultStyleFlag );
|
||||||
|
|
||||||
|
// load default style if provider is gdal and if no style was given
|
||||||
|
// this should be an argument like in the other constructor
|
||||||
|
if ( mValid && providerKey == "gdal" && layers.isEmpty() && styles.isEmpty() )
|
||||||
|
{
|
||||||
|
bool defaultLoadedFlag = false;
|
||||||
|
loadDefaultStyle( defaultLoadedFlag );
|
||||||
|
}
|
||||||
|
|
||||||
// Default for the popup menu
|
// Default for the popup menu
|
||||||
// TODO: popMenu = 0;
|
// TODO: popMenu = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user