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++
Use coarse thumbnails for the Undo History docker
Dmitry Kazakov639414111957
diff --git a/plugins/dockers/historydocker/KisUndoModel.cpp b/plugins/dockers/historydocker/KisUndoModel.cppindex ecc15d4516..a67c6d0480 100644--- a/plugins/dockers/historydocker/KisUndoModel.cpp+++ b/plugins/dockers/historydocker/KisUndoModel.cpp@@ -255,10 +255,10 @@ void KisUndoModel::addImage(int idx)const KUndo2Command* currentCommand = m_stack->command(idx-1);if (m_stack->count() == idx && !m_imageMap.contains(currentCommand)) {- KisImageWSP historyImage = m_canvas->image();+ KisImageSP historyImage = m_canvas->image();KisPaintDeviceSP paintDevice = historyImage->projection();QSize size = QSize(32, 32)*m_devicePixelRatioF;- QImage image = paintDevice->createThumbnail(size.width(), size.height());+ QImage image = paintDevice->createThumbnail(size.width(), size.height(), KisThumbnailBoundsMode::Coarse);image.setDevicePixelRatio(m_devicePixelRatioF);m_imageMap[currentCommand] = image;}