diff options
author | BlockMen <nmuelll@web.de> | 2013-12-17 01:13:16 +0100 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2013-12-17 01:13:16 +0100 |
commit | 38d112033b3ba0ea0360fced334a279576aafc5d (patch) | |
tree | c9c830392085f7b11b5586cb54ab39b8bda24a78 | |
parent | 54dbd78f90543c22ad2c37c7117a50575b62301d (diff) | |
download | minetest-38d112033b3ba0ea0360fced334a279576aafc5d.tar.gz minetest-38d112033b3ba0ea0360fced334a279576aafc5d.tar.bz2 minetest-38d112033b3ba0ea0360fced334a279576aafc5d.zip |
Fix formspec field labels
-rw-r--r-- | src/guiFormSpecMenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index eb0e63806..6f98b3d4f 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<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; |