SHA256
1
0
forked from pool/qgis
qgis/qgis-fix-return.patch

22 lines
895 B
Diff

From 10ab25e13d934a898c7b11f2f07faed10ba2ae9e Mon Sep 17 00:00:00 2001
From: Nyall Dawson <nyall.dawson@gmail.com>
Date: Mon, 16 Nov 2020 07:09:57 +1000
Subject: [PATCH] Fix build warning on gcc
---
src/gui/raster/qgscolorrampshaderwidget.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gui/raster/qgscolorrampshaderwidget.cpp b/src/gui/raster/qgscolorrampshaderwidget.cpp
index 44e8a4773767..529c7bc197f7 100644
--- a/src/gui/raster/qgscolorrampshaderwidget.cpp
+++ b/src/gui/raster/qgscolorrampshaderwidget.cpp
@@ -766,6 +766,7 @@ QString QgsColorRampShaderWidget::createLabel( QTreeWidgetItem *currentItem, int
return QLocale().toString( val, 'f', mLabelPrecisionSpinBox->value() );
}
}
+ return QString();
};
QgsColorRampShader::Type interpolation = static_cast< QgsColorRampShader::Type >( mColorInterpolationComboBox->currentData().toInt() );