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

Qt6: Fix Channels to Layers script error

Freya Lupenb5ed3d3731b4
diff --git a/plugins/python/channels2layers/channels2layers.py b/plugins/python/channels2layers/channels2layers.py
index a4f68bd2ed..2c889e2a36 100644
--- a/plugins/python/channels2layers/channels2layers.py
+++ b/plugins/python/channels2layers/channels2layers.py
@@ -1134,9 +1134,9 @@ class ChannelsToLayers(Extension):
imgThumbSrc = self.toQImage(self.__sourceLayer, rect)
- previewBaSrc.resize(imgThumbSrc.byteCount())
+ previewBaSrc.resize(imgThumbSrc.sizeInBytes())
ptr = imgThumbSrc.bits()
- ptr.setsize(imgThumbSrc.byteCount())
+ ptr.setsize(imgThumbSrc.sizeInBytes())
previewBaSrc = QByteArray(ptr.asstring())