src/database/db_recipe.cpp

changeset 384
d68826df8b63
parent 374
74d541ac514c
child 519
1b9e887392aa
--- a/src/database/db_recipe.cpp	Sun Jul 31 16:29:05 2022 +0200
+++ b/src/database/db_recipe.cpp	Sun Jul 31 20:23:27 2022 +0200
@@ -220,6 +220,9 @@
 		    if (yquery.first()) {
 			h.utilisation = yquery.value("utilisation").toDouble();
 			h.bu_factor = yquery.value("bu_factor").toDouble();
+		    } else {
+			h.utilisation = my_ut_pellet;
+			h.bu_factor = 1.0;
 		    }
 		}
 		reci->hops.append(h);

mercurial