Commit 61611e9d authored by Albert Astals Cid's avatar Albert Astals Cid

PSOutputDev: Move variable declaration inside loop

fixes shadow warning
parent 0eb72dbf
......@@ -1324,11 +1324,11 @@ void PSOutputDev::postInit()
} else {
paperMatch = false;
}
Page *page;
paperSizes = new std::vector<PSOutPaperSize*>();
for (size_t pgi = 0; pgi < pages.size(); ++pgi) {
const int pg = pages[pgi];
page = catalog->getPage(pg);
Page *page = catalog->getPage(pg);
if (page == nullptr)
paperMatch = false;
if (!paperMatch) {
......
Markdown is supported
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