mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
Fix rendering artifacts in Okular with "draw border around links" turned on
Qt5 changed the default QPen to not be cosmetic, so we need to specify we want it to be cosmetic BUGS: 375719
This commit is contained in:
parent
96d8953878
commit
af6e9a9b0b
|
@ -836,7 +836,7 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
|
|||
{
|
||||
if ( limitsEnlarged.intersects( rect->boundingRect( scaledWidth, scaledHeight ).translated( -scaledCrop.topLeft() ) ) )
|
||||
{
|
||||
mixedPainter->strokePath( rect->region(), QPen( normalColor ) );
|
||||
mixedPainter->strokePath( rect->region(), QPen( normalColor, 0 ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,8 +71,8 @@ class Q_DECL_EXPORT PagePainter
|
|||
static void drawShapeOnImage(
|
||||
QImage & image,
|
||||
const NormalizedPath & imagePoints,
|
||||
bool closeShape = true,
|
||||
const QPen & pen = QPen(),
|
||||
bool closeShape,
|
||||
const QPen & pen,
|
||||
const QBrush & brush = QBrush(),
|
||||
double penWidthMultiplier = 1.0,
|
||||
RasterOperation op = Normal
|
||||
|
|
Loading…
Reference in a new issue