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++
Ten Brushes: Don't error when using with no image
Freya Lupenc2f0087c63eb
diff --git a/plugins/python/tenbrushes/tenbrushes.py b/plugins/python/tenbrushes/tenbrushes.pyindex 5147fda8f7..044b03eca2 100644--- a/plugins/python/tenbrushes/tenbrushes.py+++ b/plugins/python/tenbrushes/tenbrushes.py@@ -116,10 +116,9 @@ class TenBrushesExtension(Extension):self.oldPreset = window.views()[0].currentBrushPreset()window.views()[0].activateResource(allPresets[preset])- preset = window.views()[0].currentBrushPreset()-- if self.showMessage:- window.activeView().showFloatingMessage(str(i18n("{}\nselected")).format(preset.name()),- QIcon(QPixmap.fromImage(preset.image())),- 1000, 1)+ if self.showMessage:+ preset = window.views()[0].currentBrushPreset()+ window.activeView().showFloatingMessage(str(i18n("{}\nselected")).format(preset.name()),+ QIcon(QPixmap.fromImage(preset.image())),+ 1000, 1)