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++

Fix error in Batch Exporter

Freya Lupenc41ebad4e0bb
diff --git a/plugins/python/batch_exporter/Infrastructure.py b/plugins/python/batch_exporter/Infrastructure.py
index a88fe6d34e..277b1068e2 100644
--- a/plugins/python/batch_exporter/Infrastructure.py
+++ b/plugins/python/batch_exporter/Infrastructure.py
@@ -27,7 +27,7 @@ def nodeToImage(wnode):
Returns an QImage 8-bit sRGB
"""
icc_profile = wnode.meta.get("icc")
- if not icc_profile and self.inherit:
+ if not icc_profile and wnode.inherit:
icc_profile = wnode.inheritedMetadata().get("icc")
if not icc_profile:
icc_profile = wnode.cfg["meta"]["icc"]