summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/ColorSpecialHandler.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/ColorSpecialHandler.hpp')
-rw-r--r--dviware/dvisvgm/src/ColorSpecialHandler.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/dviware/dvisvgm/src/ColorSpecialHandler.hpp b/dviware/dvisvgm/src/ColorSpecialHandler.hpp
index ea542e1f06..72809e8e0f 100644
--- a/dviware/dvisvgm/src/ColorSpecialHandler.hpp
+++ b/dviware/dvisvgm/src/ColorSpecialHandler.hpp
@@ -33,9 +33,10 @@ class ColorSpecialHandler : public SpecialHandler {
bool process (const std::string &prefix, std::istream &is, SpecialActions &actions) override;
static Color readColor (std::istream &is);
static Color readColor (const std::string &model, std::istream &is);
- const char* name () const override {return "color";}
+ const char* name () const override {return handlerName();}
+ static const char* handlerName () {return "color";}
const char* info () const override {return "complete support of color specials";}
- std::vector<const char*> prefixes() const override;
+ std::vector<const char*> prefixes () const override;
private:
std::stack<Color> _colorStack;