diff --git a/src/insets/ExternalTemplate.cpp b/src/insets/ExternalTemplate.cpp index 02f4e875a5..e7eca8b274 100644 --- a/src/insets/ExternalTemplate.cpp +++ b/src/insets/ExternalTemplate.cpp @@ -36,7 +36,7 @@ typedef Translator TransformIDTranslator; static TransformIDTranslator const initIDTranslator() { - TransformIDTranslator translator(TransformID(-1), ""); + TransformIDTranslator translator(None, ""); translator.addPair(Rotate, "Rotate"); translator.addPair(Resize, "Resize"); translator.addPair(Clip, "Clip"); diff --git a/src/insets/ExternalTransforms.h b/src/insets/ExternalTransforms.h index 62e3342352..2311ac2f66 100644 --- a/src/insets/ExternalTransforms.h +++ b/src/insets/ExternalTransforms.h @@ -307,6 +307,7 @@ std::string const sanitizeDocBookOption(std::string const & input); enum TransformID { + None = -1, Rotate, Resize, Clip,