From edcfebfd415f6460440128950912fed118e95433 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 24 Dec 2016 15:05:44 +0100 Subject: [PATCH] fix displaying missing carbs in wizard --- .../androidaps/plugins/Overview/Dialogs/WizardDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java index f255e4ca1e..60f7c48696 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java @@ -380,7 +380,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener { correctionInsulin.setText(DecimalFormatter.to2Decimal(wizard.insulinFromCorrection) + "U"); calculatedTotalInsulin = wizard.calculatedTotalInsulin; - if (calculatedTotalInsulin < 0) { + if (calculatedTotalInsulin <= 0) { total.setText(getString(R.string.missing) + " " + DecimalFormatter.to0Decimal(wizard.carbsEquivalent) + "g"); totalInsulin.setText(""); } else {