Fix formspec field labels
authorBlockMen <nmuelll@web.de>
Tue, 17 Dec 2013 00:13:16 +0000 (01:13 +0100)
committerBlockMen <nmuelll@web.de>
Tue, 17 Dec 2013 00:13:16 +0000 (01:13 +0100)
src/guiFormSpecMenu.cpp

index eb0e638061712fb030c86dac3dae3ac45a763183..6f98b3d4fd8425bf8cf95ff096753da7ec4ce321 100644 (file)
@@ -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<std::string>
                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<std::string>& p
                        e->OnEvent(evt);
                }
 
-               if (label.length() > 1)
+               if (label.length() >= 1)
                {
                        rect.UpperLeftCorner.Y -= 15;
                        rect.LowerRightCorner.Y = rect.UpperLeftCorner.Y + 15;