File qucs-no-return-in-nonvoid-function.patch of Package qucs
diff --git a/qucs/dialogs/exportdialog.cpp b/qucs/dialogs/exportdialog.cpp
index a23047a..15bf988 100644
--- a/qucs/dialogs/exportdialog.cpp
+++ b/qucs/dialogs/exportdialog.cpp
@@ -331,11 +331,18 @@ void ExportDialog::recalcScale()
ExportDialog::ImgFormat ExportDialog::getImgFormat()
{
+ // default
+ ExportDialog::ImgFormat ImgFormat = ExportDialog::Coloured;
+
switch (cbxImgType->currentIndex()) {
- case 0 : return ExportDialog::Coloured;
+ case 0 :
+ ImgFormat = ExportDialog::Coloured;
break;
- case 1 : return ExportDialog::Monochrome;
+ case 1 :
+ ImgFormat = ExportDialog::Monochrome;
break;
default : break;
}
+
+ return ImgFormat;
}