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

Relax an assert to a safe assert in KisResourceThumbnailCache

Dmitry Kazakove579e3a42964
diff --git a/libs/resources/KisResourceThumbnailCache.cpp b/libs/resources/KisResourceThumbnailCache.cpp
index f17af73eda..3cbda4047b 100644
--- a/libs/resources/KisResourceThumbnailCache.cpp
+++ b/libs/resources/KisResourceThumbnailCache.cpp
@@ -88,7 +88,7 @@ void KisResourceThumbnailCache::Private::insertOriginal(const ResourceKey &key,
{
// Someone else has added the image to this cache, when the only path to here is from a method which
// checks whether this cache contains it or not.
- KIS_ASSERT(!originalImageCache.contains(key));
+ KIS_SAFE_ASSERT_RECOVER_NOOP(!originalImageCache.contains(key));
originalImageCache.insert(key, image);
}