Skip to content

Commit

Permalink
Fix formspec field labels
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen committed Dec 17, 2013
1 parent 54dbd78 commit 38d1120
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/guiFormSpecMenu.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 38d1120

Please sign in to comment.