mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
dbf7afa084
commit
787e2abb25
@ -170,7 +170,7 @@ static QImage convolve(const QImage &image, int matrix_size, float *matrix) {
|
|||||||
|
|
||||||
ENSURE32(img);
|
ENSURE32(img);
|
||||||
|
|
||||||
QImage buffer = QImage(w, h, img.format());
|
QImage buffer(w, h, img.format());
|
||||||
if (buffer.isNull()) throw std::bad_alloc();
|
if (buffer.isNull()) throw std::bad_alloc();
|
||||||
buf1.resize(matrix_size);
|
buf1.resize(matrix_size);
|
||||||
scanblock = buf1.data();
|
scanblock = buf1.data();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user