mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #22: Fix compilation warnings
This commit is contained in:
@ -371,17 +371,17 @@ PDFTextSelection PDFTextLayout::createTextSelection(PDFInteger pageIndex, const
|
||||
std::swap(pointA, pointB);
|
||||
}
|
||||
|
||||
QRectF rect = boundingBoxPath.controlPointRect();
|
||||
QRectF boundingBoxPathBBRect = boundingBoxPath.controlPointRect();
|
||||
|
||||
// If start point is above the text block, move start point to the left.
|
||||
if (rect.bottom() < pointA.y())
|
||||
if (boundingBoxPathBBRect.bottom() < pointA.y())
|
||||
{
|
||||
pointA.setX(rect.left());
|
||||
pointA.setX(boundingBoxPathBBRect.left());
|
||||
isTopPointAboveText = true;
|
||||
}
|
||||
if (rect.top() > pointB.y())
|
||||
if (boundingBoxPathBBRect.top() > pointB.y())
|
||||
{
|
||||
pointB.setX(rect.right());
|
||||
pointB.setX(boundingBoxPathBBRect.right());
|
||||
isBottomPointBelowText = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user