[recipes] details: Don't scale when initially populating



commit f7cacc68da08ef3ee4b0c19d03bbdbf9faa6fe35
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jul 10 08:01:26 2017 -0400

    details: Don't scale when initially populating
    
    The amounts in the ingredients list are to match the
    nominal yield of the recipe. So when we initially populate
    the ingredients list, no scaling should happen.
    
    Bug reported by Sylvia Sanchez.

 src/gr-details-page.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-details-page.c b/src/gr-details-page.c
index cfae58b..426b3ae 100644
--- a/src/gr-details-page.c
+++ b/src/gr-details-page.c
@@ -648,7 +648,7 @@ gr_details_page_set_recipe (GrDetailsPage *page,
         g_free (page->ing_text);
         page->ing_text = g_strdup (ingredients);
 
-        populate_ingredients (page, yield);
+        populate_ingredients (page, 1.0);
 
         if (prep_time[0] == '\0') {
                 gtk_widget_hide (page->prep_time_label);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]