Skip to content

Styler for user-defined highlighting crashes program when given arbitrary string #2646

@lkieliger

Description

@lkieliger

Description of the Issue

When defining new highlighting rules for a custom language, opening the "Styler dialog" and providing an arbitrary string in the inputs for the font options will crash the program

Steps to Reproduce the Issue

  1. Define a new language for highlighting keywords
  2. Open the Styler dialog to edit text style
  3. Instead of selecting a font name and font size from the combo-box, write directly an arbitrary string and press enter

Expected Behavior

Either detect closest match for user input or leave input field empty

Actual Behavior

Program crash

Debug Information

Notepad++ v7.2.2 (32-bit)
Build time : Nov 27 2016 - 16:31:07
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10
Plugins : mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll

styler_crash

styler_crash2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions