Fixed the pattern rendering issue in PDF
Fixed the pattern rendering issue in PDF
This commit is contained in:
Родитель
fbc7db438d
Коммит
8eaf07a385
|
@ -5178,7 +5178,6 @@ void QPainter::drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)
|
|||
qreal delta = sw - (pm.width() - sx);
|
||||
qreal w_ratio = delta * w/sw;
|
||||
sw -= delta;
|
||||
w -= w_ratio;
|
||||
}
|
||||
|
||||
if (sh + sy > pm.height()) {
|
||||
|
|
|
@ -119,7 +119,7 @@ void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const Fl
|
|||
oneTileRect.setSize(scaledTileSize);
|
||||
|
||||
// Check and see if a single draw of the image can cover the entire area we are supposed to tile.
|
||||
if (oneTileRect.contains(destRect)) {
|
||||
if (oneTileRect.contains(destRect) || destRect.width() != scaledTileSize.width()) {
|
||||
FloatRect visibleSrcRect;
|
||||
visibleSrcRect.setX((destRect.x() - oneTileRect.x()) / scale.width());
|
||||
visibleSrcRect.setY((destRect.y() - oneTileRect.y()) / scale.height());
|
||||
|
|
Загрузка…
Ссылка в новой задаче