--- a/src/EditRecipeExport.cpp Sun Jul 03 19:02:02 2022 +0200 +++ b/src/EditRecipeExport.cpp Tue Jul 05 14:31:39 2022 +0200 @@ -21,7 +21,6 @@ void EditRecipe::exportBeerXML() { const QStringList color_method({ "Morey", "Mosher", "Daniels", "Halberstadt", "Naudts" }); - const QStringList ibu_method({ "Tinseth", "Rager", "Daniels", "Garetz", "Mosher", "Noonan" }); const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet" }); /* "Leaf Wet", "Cryo", "Extract" */ /* We use more hop forms then beerxml knows about, so we send known names */ @@ -73,7 +72,7 @@ } if (recipe->est_ibu > 0) { xmlWriter->writeTextElement("EST_IBU", QString::number(recipe->est_ibu, 'f', 1)); - xmlWriter->writeTextElement("IBU_METHOD", ibu_method[recipe->ibu_method]); + xmlWriter->writeTextElement("IBU_METHOD", g_ibu_method[recipe->ibu_method]); } xmlWriter->writeStartElement("STYLE"); @@ -437,7 +436,6 @@ void EditRecipe::toforumRecipe() { const QStringList color_method({ "Morey", "Mosher", "Daniels", "Halberstadt", "Naudts" }); - const QStringList ibu_method({ "Tinseth", "Rager", "Daniels", "Garetz", "Mosher", "Noonan" }); QString memo = QString("[u][b]BMSapp v"); memo.append(VERSIONSTRING); // For some stupid reason this must be on it's own. @@ -454,7 +452,7 @@ memo.append("[row][data]Geschatte eind densiteit[/data][data]" + QString::number(recipe->est_fg, 'f', 3) + " SG[/data][/row]\n"); memo.append("[row][data]Geschat alcohol[/data][data]" + QString::number(recipe->est_abv, 'f', 1) + "%[/data][/row]\n"); memo.append("[row][data]Kleur (" + color_method[recipe->color_method] + ")[/data][data]" + QString::number(recipe->est_color, 'f', 0) + " EBC[/data][/row]\n"); - memo.append("[row][data]Bitterheid (" + ibu_method[recipe->ibu_method] + ")[/data][data]" + QString::number(recipe->est_ibu, 'f', 1) + " IBU[/data][/row]\n"); + memo.append("[row][data]Bitterheid (" + QString(g_ibu_method[recipe->ibu_method]) + ")[/data][data]" + QString::number(recipe->est_ibu, 'f', 1) + " IBU[/data][/row]\n"); memo.append("[/tabular]\n\n"); memo.append("[u][b]Vergistbare ingrediƫnten[/b][/u]\n");