From 5334f1e5530cafe072283a07209f6ee694f26b99 Mon Sep 17 00:00:00 2001 From: Luca Citi Date: Mon, 11 May 2020 22:10:22 +0100 Subject: [PATCH] Fixes missing code dealing with type=="text" in toolTypeFromString (closes #1961) --- src/control/ToolEnums.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/control/ToolEnums.cpp b/src/control/ToolEnums.cpp index fd456e50..791518f9 100644 --- a/src/control/ToolEnums.cpp +++ b/src/control/ToolEnums.cpp @@ -144,6 +144,9 @@ auto toolTypeFromString(const string& type) -> ToolType { if (type == "hilighter") { return TOOL_HILIGHTER; } + if (type == "text") { + return TOOL_TEXT; + } if (type == "image") { return TOOL_IMAGE; }