|
|
@ -887,11 +887,6 @@ void UBImgTextThumbnailElement::Place(int row, int col, qreal width, qreal heigh |
|
|
|
qreal scaleFactor = qMin(scaleWidth, scaleHeight); |
|
|
|
qreal scaleFactor = qMin(scaleWidth, scaleHeight); |
|
|
|
UBThumbnail* pix = dynamic_cast<UBThumbnail*>(this->thumbnail); |
|
|
|
UBThumbnail* pix = dynamic_cast<UBThumbnail*>(this->thumbnail); |
|
|
|
|
|
|
|
|
|
|
|
if(pix) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
scaleFactor = qMin(scaleFactor, 1.0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QTransform transform; |
|
|
|
QTransform transform; |
|
|
|
transform.scale(scaleFactor, scaleFactor); |
|
|
|
transform.scale(scaleFactor, scaleFactor); |
|
|
|
|
|
|
|
|
|
|
|