Commit b1b669cd authored by Marius Pa's avatar Marius Pa
Browse files

pdfvectorpicture sourceHeight should not use width

Fix PVS-Studio issue "pdfvectorpicture.cpp:144: warning: V524
It is odd that the body of 'sourceHeight' function is fully equivalent
to the body of 'sourceWidth' function.".
parent 0ce8ffe6
Pipeline #208387 passed with stage
in 3 minutes and 37 seconds
......@@ -144,7 +144,7 @@ int PdfVectorPicture::sourceWidth() const
int PdfVectorPicture::sourceHeight() const
// 1/72 dpi is the unit for the vector coordinates
return boundingRect().width() * (RenderDPI / 72.0);
return boundingRect().height() * (RenderDPI / 72.0);
int PdfVectorPicture::width() const
Supports Markdown
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