diff options
author | Neil <nyamatongwe@gmail.com> | 2022-12-09 14:20:43 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2022-12-09 14:20:43 +1100 |
commit | 1c56d4698f60e82c2f7c0a0a9a7d2a9ae1efdce4 (patch) | |
tree | a23890a80a7ad26da551478741f21e24a613e101 /src/ViewStyle.h | |
parent | 9ed25fbd994d700d0f059a56844c3f170a77d2a3 (diff) | |
download | scintilla-mirror-1c56d4698f60e82c2f7c0a0a9a7d2a9ae1efdce4.tar.gz |
More safety for potentially empty unwraps with ElementColourForced returning a
ColourRGBA which is opaque black if the element not found.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index c9b498bdb..19a853121 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -221,6 +221,7 @@ public: void AddMultiEdge(int column, ColourRGBA colour); ColourOptional ElementColour(Scintilla::Element element) const; + ColourRGBA ElementColourForced(Scintilla::Element element) const; bool ElementAllowsTranslucent(Scintilla::Element element) const; bool ResetElement(Scintilla::Element element); bool SetElementColour(Scintilla::Element element, ColourRGBA colour); |