Fix cppcheck issue "src/lib/pdf/pdfvectorpicture.cpp:68: The scope of the variable 'maxPenWidth' can be reduced.".