Commit 68a00c12 authored by David Schulz's avatar David Schulz
Browse files

Editor: Do not assign unknown style to text style.

Just return the last style sentinel.

Change-Id: I2bd1a6e12913e0c208b11efae3baae87c183f39a
Reviewed-by: default avatarChristian Stenger <>
Reviewed-by: default avatarEike Ziller <>
parent 8b833b82
......@@ -110,7 +110,7 @@ TextStyle styleFromName(const char *name)
if (qstrcmp(name, nameForStyle(TextStyle(i))) == 0)
return TextStyle(i);
return TextStyle();
} // namespace Constants
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment