qt5: rename variable to fix shadow warning
diff --git a/qt5/src/poppler-page.cc b/qt5/src/poppler-page.cc
index 3e75062..4676dcd 100644
--- a/qt5/src/poppler-page.cc
+++ b/qt5/src/poppler-page.cc
@@ -517,7 +517,7 @@
return renderToImage(xres, yres, x, y, w, h, rotate, partialUpdateCallback, shouldDoPartialUpdateCallback, nullptr, payload);
}
-QImage Page::renderToImage(double xres, double yres, int x, int y, int w, int h, Rotation rotate, RenderToImagePartialUpdateFunc partialUpdateCallback, ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback, ShouldAbortQueryFunc shouldAbortRenderCallback, const QVariant &payload) const
+QImage Page::renderToImage(double xres, double yres, int xPos, int yPos, int w, int h, Rotation rotate, RenderToImagePartialUpdateFunc partialUpdateCallback, ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback, ShouldAbortQueryFunc shouldAbortRenderCallback, const QVariant &payload) const
{
int rotation = (int)rotate * 90;
QImage img;
@@ -593,7 +593,7 @@
OutputDevCallbackHelper *abortHelper = &splash_output;
m_page->parentDoc->doc->displayPageSlice(&splash_output, m_page->index + 1, xres, yres,
- rotation, false, true, false, x, y, w, h,
+ rotation, false, true, false, xPos, yPos, w, h,
shouldAbortRenderCallback ? shouldAbortRenderInternalCallback : nullAbortCallBack, abortHelper,
(hideAnnotations) ? annotDisplayDecideCbk : nullAnnotCallBack,
nullptr, true);
@@ -617,7 +617,7 @@
QPainter painter(&tmpimg);
QImageDumpingArthurOutputDev arthur_output(&painter, &tmpimg);
arthur_output.setCallbacks(partialUpdateCallback, shouldDoPartialUpdateCallback, shouldAbortRenderCallback, payload);
- renderToArthur(&arthur_output, &painter, m_page, xres, yres, x, y, w, h, rotate, DontSaveAndRestore);
+ renderToArthur(&arthur_output, &painter, m_page, xres, yres, xPos, yPos, w, h, rotate, DontSaveAndRestore);
painter.end();
img = tmpimg;
break;