Browse Source

Copy-paste fix for elements with max_length set.

Doug Binks 11 years ago
parent
commit
1e322a3614
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Controls/WidgetTextInput.cpp

+ 1 - 1
Source/Controls/WidgetTextInput.cpp

@@ -351,7 +351,7 @@ void WidgetTextInput::ProcessEvent(Core::Event& event)
     				for (size_t i = 0; i < clipboard_content.Length(); ++i)
     				{
     					if (max_length > 0 &&
-    						(int) Core::WString(GetElement()->GetAttribute< Rocket::Core::String >("value", "")).Length() < max_length)
+    						(int) Core::WString(GetElement()->GetAttribute< Rocket::Core::String >("value", "")).Length() > max_length)
     						break;
 
     					AddCharacter(clipboard_content[i]);