qt5: ArthurOutputDev: Add missing 'return' in error paths
diff --git a/qt5/src/ArthurOutputDev.cc b/qt5/src/ArthurOutputDev.cc
index 14c7981..61c5990 100644
--- a/qt5/src/ArthurOutputDev.cc
+++ b/qt5/src/ArthurOutputDev.cc
@@ -884,6 +884,7 @@
{
qDebug() << "Soft mask size does not match image size!";
drawImage(state, ref, str, width, height, colorMap, interpolate, nullptr, gFalse);
+ return;
}
// Bail out if the mask isn't a single channel. I don't know
@@ -892,6 +893,7 @@
{
qDebug() << "Soft mask is not a single 8-bit channel!";
drawImage(state, ref, str, width, height, colorMap, interpolate, nullptr, gFalse);
+ return;
}
/* TODO: Do we want to cache these? */