Skip to content

Commit 79cdaa6

Browse files
committed
Add Z support for AddEllipse map tools
1 parent d3b9c98 commit 79cdaa6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/app/qgsmaptoolellipsecenter2points.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ QgsMapToolEllipseCenter2Points::QgsMapToolEllipseCenter2Points( QgsMapToolCaptur
3030

3131
void QgsMapToolEllipseCenter2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
3232
{
33-
QgsPoint mapPoint( e->mapPoint() );
33+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
3434

3535
if ( e->button() == Qt::LeftButton )
3636
{
@@ -56,7 +56,7 @@ void QgsMapToolEllipseCenter2Points::cadCanvasReleaseEvent( QgsMapMouseEvent *e
5656

5757
void QgsMapToolEllipseCenter2Points::cadCanvasMoveEvent( QgsMapMouseEvent *e )
5858
{
59-
QgsPoint mapPoint( e->mapPoint() );
59+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
6060

6161
if ( mTempRubberBand )
6262
{

src/app/qgsmaptoolellipsecenterpoint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ QgsMapToolEllipseCenterPoint::QgsMapToolEllipseCenterPoint( QgsMapToolCapture *p
2828

2929
void QgsMapToolEllipseCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
3030
{
31-
QgsPoint mapPoint( e->mapPoint() );
31+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
3232

3333
if ( e->button() == Qt::LeftButton )
3434
{
@@ -52,7 +52,7 @@ void QgsMapToolEllipseCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
5252

5353
void QgsMapToolEllipseCenterPoint::cadCanvasMoveEvent( QgsMapMouseEvent *e )
5454
{
55-
QgsPoint mapPoint( e->mapPoint() );
55+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
5656
if ( mTempRubberBand )
5757
{
5858
mEllipse = QgsEllipse().fromCenterPoint( mPoints.at( 0 ), mapPoint );

src/app/qgsmaptoolellipseextent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ QgsMapToolEllipseExtent::QgsMapToolEllipseExtent( QgsMapToolCapture *parentTool,
3030

3131
void QgsMapToolEllipseExtent::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
3232
{
33-
QgsPoint mapPoint( e->mapPoint() );
33+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
3434

3535
if ( e->button() == Qt::LeftButton )
3636
{
@@ -54,7 +54,7 @@ void QgsMapToolEllipseExtent::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
5454

5555
void QgsMapToolEllipseExtent::cadCanvasMoveEvent( QgsMapMouseEvent *e )
5656
{
57-
QgsPoint mapPoint( e->mapPoint() );
57+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
5858

5959
if ( mTempRubberBand )
6060
{

src/app/qgsmaptoolellipsefoci.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ QgsMapToolEllipseFoci::QgsMapToolEllipseFoci( QgsMapToolCapture *parentTool,
3030

3131
void QgsMapToolEllipseFoci::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
3232
{
33-
QgsPoint mapPoint( e->mapPoint() );
33+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
3434

3535
if ( e->button() == Qt::LeftButton )
3636
{
@@ -54,7 +54,7 @@ void QgsMapToolEllipseFoci::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
5454

5555
void QgsMapToolEllipseFoci::cadCanvasMoveEvent( QgsMapMouseEvent *e )
5656
{
57-
QgsPoint mapPoint( e->mapPoint() );
57+
QgsPoint mapPoint = fromPointXY( e->mapPoint() );
5858

5959
if ( mTempRubberBand )
6060
{

0 commit comments

Comments
 (0)