mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
use floating point precision and use proper setFlags method (#8244)
This commit is contained in:
parent
7ad0dcfa71
commit
dff0496961
@ -79,7 +79,7 @@ void QgsAdvancedDigitizingCanvasItem::paint( QPainter *painter )
|
||||
snapSegmentPix2 = toCanvasCoordinates( snappedSegment[1] );
|
||||
}
|
||||
|
||||
painter->setRenderHints( QPainter::Antialiasing );
|
||||
painter->setRenderHint( QPainter::Antialiasing );
|
||||
painter->setCompositionMode( QPainter::CompositionMode_Difference );
|
||||
|
||||
// Draw point snap
|
||||
@ -208,10 +208,8 @@ void QgsAdvancedDigitizingCanvasItem::paint( QPainter *painter )
|
||||
}
|
||||
if ( draw )
|
||||
{
|
||||
painter->drawLine( 0,
|
||||
y,
|
||||
boundingRect().width(),
|
||||
y );
|
||||
painter->drawLine( QPointF( 0, y ),
|
||||
QPointF( boundingRect().width(), y ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user