From 4f67f5d26f637809f0615a05cd14a09351c76957 Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Tue, 12 Aug 2014 18:53:03 +0200 Subject: [PATCH] Spellcreation window: set captions to "0" if no effects are added (Fixes #1778) --- apps/openmw/mwgui/spellcreationdialog.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/openmw/mwgui/spellcreationdialog.cpp b/apps/openmw/mwgui/spellcreationdialog.cpp index e9e170ae1..699377f15 100644 --- a/apps/openmw/mwgui/spellcreationdialog.cpp +++ b/apps/openmw/mwgui/spellcreationdialog.cpp @@ -387,6 +387,14 @@ namespace MWGui void SpellCreationDialog::notifyEffectsChanged () { + if (mEffects.empty()) + { + mMagickaCost->setCaption("0"); + mPriceLabel->setCaption("0"); + mSuccessChance->setCaption("0"); + return; + } + float y = 0; const MWWorld::ESMStore &store =