Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Workflow Buttons: Fix Pan and Text Tool buttons

Freya Lupene528a61e3815
diff --git a/plugins/python/workflow_buttons/buttons_settings_dialog.py b/plugins/python/workflow_buttons/buttons_settings_dialog.py
index 44d608502b..216258ecdf 100644
--- a/plugins/python/workflow_buttons/buttons_settings_dialog.py
+++ b/plugins/python/workflow_buttons/buttons_settings_dialog.py
@@ -24,7 +24,7 @@ INSTANCE = Krita.instance()
LISTOFTOOLS = [
{ "toolName": "", "toolIcon": "", "toolString": "" },
{ "toolName": "InteractionTool", "toolIcon": "select", "toolString": "Select Shapes Tool" },
- { "toolName": "SvgTextToo", "toolIcon": "draw-text", "toolString": "Text Tool" },
+ { "toolName": "SvgTextTool", "toolIcon": "draw-text", "toolString": "Text Tool" },
{ "toolName": "PathTool", "toolIcon": "shape_handling", "toolString": "Edit Shapes Tool" },
{ "toolName": "KarbonCalligraphyTool", "toolIcon": "calligraphy", "toolString": "Calligraphy" },
{ "toolName": "KritaShape/KisToolBrush", "toolIcon": "krita_tool_freehand", "toolString": "Freehand Brush Tool" },
diff --git a/plugins/python/workflow_buttons/workflow_buttons.py b/plugins/python/workflow_buttons/workflow_buttons.py
index b84cbd7288..d8493ffafa 100644
--- a/plugins/python/workflow_buttons/workflow_buttons.py
+++ b/plugins/python/workflow_buttons/workflow_buttons.py
@@ -163,7 +163,7 @@ class CustomButton(QToolButton):
# select given tool
if self.values["toolIndex"] != "":
toolIndex = int(self.values["toolIndex"])
- if(toolIndex > 0 and toolIndex < len(LISTOFTOOLS) - 1):
+ if(toolIndex > 0 and toolIndex < len(LISTOFTOOLS)):
INSTANCE.action(LISTOFTOOLS[int(self.values["toolIndex"])]["toolName"]).trigger()
# get list of all presets