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

Editor: Do not assign unknown style to text style.

Just return the last style sentinel.

Change-Id: I2bd1a6e12913e0c208b11efae3baae87c183f39a
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
parent 8b833b82
......@@ -110,7 +110,7 @@ TextStyle styleFromName(const char *name)
if (qstrcmp(name, nameForStyle(TextStyle(i))) == 0)
return TextStyle(i);
}
return TextStyle();
return C_LAST_STYLE_SENTINEL;
}
} // namespace Constants
......
Markdown is supported
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