Commit 0478b4d9 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix the size of conversion cache object

Thanks Smjert for catching this bug! :)
parent ed19fe68
......@@ -57,6 +57,7 @@ public:
if (size > m_size) {
try {
m_data.reset(new quint8[size]);
m_size = size;
catch (std::bad_alloc) {
QMessageBox::critical(0, i18n("Fatal Error"), i18n("Krita has run out of memory and has to close."));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment