[Scummvm-cvs-logs] SF.net SVN: scummvm:[52518] scummvm/trunk/engines/sci/graphics/controls.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat Sep 4 12:39:23 CEST 2010


Revision: 52518
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52518&view=rev
Author:   m_kiewitz
Date:     2010-09-04 10:39:22 +0000 (Sat, 04 Sep 2010)

Log Message:
-----------
SCI: delete on textedit control now checks string

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/controls.cpp

Modified: scummvm/trunk/engines/sci/graphics/controls.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/controls.cpp	2010-09-04 09:58:37 UTC (rev 52517)
+++ scummvm/trunk/engines/sci/graphics/controls.cpp	2010-09-04 10:39:22 UTC (rev 52518)
@@ -178,8 +178,10 @@
 				}
 				break;
 			case SCI_KEY_DELETE:
-				text.deleteChar(cursorPos);
-				textChanged = true;
+				if (cursorPos < textSize) {
+					text.deleteChar(cursorPos);
+					textChanged = true;
+				}
 				break;
 			case SCI_KEY_HOME: // HOME
 				cursorPos = 0; textChanged = true;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list