figment/tesvsnip — Issue #7: MediumLevelRecordEditor: Damage locale string if press save batton without changes
Author: MrRaven
Created: 2012-01-10 17:06:15+00:00
State: open

v 2.2. Incorrect view locale (Russian etc.) string (LString) in the MediumLevelRecordEditor.
For example: FULL subrecord.
Damage locale string if press save batton without changes (cause - converting nonconverted locale string - bSave_Click())

Solution:
=============================
MediumLevelRecordEditor.cs
=============================
private void AddElement(ElementStructure es, ref int offset, byte[] data, ref int groupOffset, ref int CurrentGroup)
....
case ElementValueType.LString:
....
if (isString)
{
s = System.Text.Encoding.Default.GetString(data, offset, data.Length - offset);
//s = TypeConverter.GetString(new ArraySegment(data, offset, data.Length - offset));
....

This is working...