From: BlockMen Date: Tue, 17 Dec 2013 00:13:16 +0000 (+0100) Subject: Fix formspec field labels X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=38d112033b3ba0ea0360fced334a279576aafc5d;p=zefram%2Fminetest%2Fminetest_engine.git Fix formspec field labels --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index eb0e6380..6f98b3d4 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -843,7 +843,7 @@ void GUIFormSpecMenu::parsePwdField(parserData* data,std::string element) { Environment->setFocus(e); } - if (label.length() > 1) + if (label.length() >= 1) { rect.UpperLeftCorner.Y -= 15; rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15; @@ -934,7 +934,7 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,std::vector evt.KeyInput.PressedDown = true; e->OnEvent(evt); - if (label.length() > 1) + if (label.length() >= 1) { rect.UpperLeftCorner.Y -= 15; rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15; @@ -1026,7 +1026,7 @@ void GUIFormSpecMenu::parseTextArea(parserData* data,std::vector& p e->OnEvent(evt); } - if (label.length() > 1) + if (label.length() >= 1) { rect.UpperLeftCorner.Y -= 15; rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;