Skip to content
Snippets Groups Projects
Commit 0768eef6 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf
Browse files

qt: fix warning when generating RoundImage with no source

fix: #26671
parent 51435362
No related branches found
No related tags found
Loading
Pipeline #207024 passed with stage
in 18 minutes and 7 seconds
......@@ -303,6 +303,9 @@ QImage RoundImage::RoundImageGenerator::execute()
if (width <= 0 || height <= 0)
return {};
if (source.isEmpty())
return {};
auto file = getReadable(source);
if (!file || !file->isOpen())
return {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment