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: use KisPortingUtils to set utf-8 on stream

Halla Remptadfbd5f0d69c
diff --git a/libs/image/kis_convolution_worker_fft.h b/libs/image/kis_convolution_worker_fft.h
index b41f069065..5fa4217976 100644
--- a/libs/image/kis_convolution_worker_fft.h
+++ b/libs/image/kis_convolution_worker_fft.h
@@ -21,6 +21,8 @@
#include <QFile>
#include <QDir>
+#include <KisPortingUtils.h>
+
#include <fftw3.h>
template<class _IteratorFactory_> class KisConvolutionWorkerFFT;
@@ -494,7 +496,7 @@ private:
}
QTextStream in(&file);
- in.setCodec("UTF-8");
+ KisPortingUtils::setUtf8OnStream(in);
for (quint32 y = 0; y < m_fftHeight; y++)
{
for (quint32 x = 0; x < m_fftWidth; x++)