Skip to content

Commit

Permalink
Align raster "load style" button in the styling panel
Browse files Browse the repository at this point in the history
to the one in raster layer properties dialog, allowing thus to load raster style from db from within the Styling panel also
  • Loading branch information
DelazJ committed Jan 18, 2024
1 parent 1a5f520 commit 7238f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmaplayerstylemanagerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void QgsMapLayerStyleManagerWidget::loadStyle()
break;

case Qgis::LayerType::Raster:
QgsRasterLayerProperties( mLayer, mMapCanvas ).loadStyleFromFile();
QgsRasterLayerProperties( mLayer, mMapCanvas ).loadStyle();
break;

case Qgis::LayerType::Mesh:
Expand Down

0 comments on commit 7238f83

Please sign in to comment.