Skip to content
Permalink
Browse files

use floating point precision and use proper setFlags method (#8244)

  • Loading branch information
3nids committed Oct 19, 2018
1 parent 7ad0dcf commit dff04969611a93b34766a60d4247eb7394ae0dbd
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/gui/qgsadvanceddigitizingcanvasitem.cpp
@@ -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 ) );
}
}

0 comments on commit dff0496

Please sign in to comment.
You can’t perform that action at this time.