Minor bufixes in axial shading, clipping on crop box

This commit is contained in:
Jakub Melka
2019-09-01 15:44:22 +02:00
parent 3e345a768f
commit 69ba66ae04
7 changed files with 60 additions and 15 deletions

View File

@ -121,6 +121,11 @@ QRectF PDFPage::getRotatedMediaBox() const
return getRotatedBox(getMediaBox(), getPageRotation());
}
QRectF PDFPage::getRotatedCropBox() const
{
return getRotatedBox(getCropBox(), getPageRotation());
}
QRectF PDFPage::getRotatedBox(const QRectF& rect, PageRotation rotation)
{
switch (rotation)