character-map-uwp / Character-Map-UWP

A modern, native UWP replacement for the Win32 Character Map and Windows Font Viewer with flawless high DPI and touch support.
MIT License
615 stars 52 forks source link

Crashed when double clicking WhiteSpace Button #226

Closed laipuran closed 1 year ago

laipuran commented 1 year ago

Crashed when double clicking Whitespace Button in Harmony OS Sans Fonts (Windows 10) image LOG:

Index and count must refer to a location within the string.
Parameter name: count
   at System.String.Remove(Int32, Int32) + 0x161
   at CharacterMap.ViewModels.FontMapViewModel.AddCharToSequence(Int32, Int32, Character) + 0x41
   at CharacterMap.Views.FontMapView.<AddCharToSequence>d__91.MoveNext() + 0x97
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object) + 0x1e
   at System.Action`1.Invoke(T) + 0x28
   at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x33