2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-23 03:18:59 +00:00

Fix outdated comment

This commit is contained in:
Jay Berkenbilt 2021-01-02 15:58:40 -05:00
parent 3be58f49e5
commit ba6b6aacf1

View File

@ -938,8 +938,8 @@ QPDFPageObjectHelper::placeFormXObject(
QPDFObjectHandle::Rectangle bbox = bbox_obj.getArrayAsRectangle(); QPDFObjectHandle::Rectangle bbox = bbox_obj.getArrayAsRectangle();
QPDFObjectHandle::Rectangle T = wmatrix.transformRectangle(bbox); QPDFObjectHandle::Rectangle T = wmatrix.transformRectangle(bbox);
// Calculate a scale factor, if needed. If the transformed // Calculate a scale factor, if needed. Shrink or expand if needed
// rectangle is too big, shrink it. Never expand it. // and allowed.
if ((T.urx == T.llx) || (T.ury == T.lly)) if ((T.urx == T.llx) || (T.ury == T.lly))
{ {
// avoid division by zero // avoid division by zero