1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed a crash when pressing Left while at the first character of a cMenuEditStrItem

This commit is contained in:
Klaus Schmidinger 2007-10-13 10:41:37 +02:00
parent f99b293de4
commit 42a8041352
3 changed files with 7 additions and 3 deletions

View File

@ -1885,6 +1885,8 @@ Christian Wieninger <cwieninger@gmx.de>
for reporting a problem with the device selection in case of timer conflicts for reporting a problem with the device selection in case of timer conflicts
for a patch that fixed part of a crash in i18n character set conversion for a patch that fixed part of a crash in i18n character set conversion
for reporting a bug in stripping the context in I18nTranslate() for reporting a bug in stripping the context in I18nTranslate()
for fixing a crash when pressing Left while at the first character of a
cMenuEditStrItem
Thiemo Gehrke <tgehrke@reel-multimedia.com> Thiemo Gehrke <tgehrke@reel-multimedia.com>
for suggesting to add a setup option to turn off the automatic timeout of the for suggesting to add a setup option to turn off the automatic timeout of the

View File

@ -5455,3 +5455,5 @@ Video Disk Recorder Revision History
Denis Knauf). Denis Knauf).
- Added a missing SetVolumeDevice() call in cDevice::SetPrimaryDevice() (reported - Added a missing SetVolumeDevice() call in cDevice::SetPrimaryDevice() (reported
by Reinhard Nissl). by Reinhard Nissl).
- Fixed a crash when pressing Left while at the first character of a cMenuEditStrItem
(thanks to Christian Wieninger).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menuitems.c 1.51 2007/08/17 13:48:07 kls Exp $ * $Id: menuitems.c 1.52 2007/10/13 10:39:40 kls Exp $
*/ */
#include "menuitems.h" #include "menuitems.h"
@ -499,9 +499,9 @@ eOSState cMenuEditStrItem::ProcessKey(eKeys Key)
if (!insert || newchar) if (!insert || newchar)
pos--; pos--;
newchar = true; newchar = true;
}
if (!insert && Utf8is(alpha, valueUtf8[pos])) if (!insert && Utf8is(alpha, valueUtf8[pos]))
uppercase = Utf8is(upper, valueUtf8[pos]); uppercase = Utf8is(upper, valueUtf8[pos]);
}
break; break;
case kRight|k_Repeat: case kRight|k_Repeat:
case kRight: if (InEditMode()) case kRight: if (InEditMode())