Skip to content

Commit

Permalink
Fix annotation colors are modified when cancel is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 21, 2016
1 parent 0352745 commit 95fd61c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
20 changes: 0 additions & 20 deletions src/app/qgsannotationwidget.cpp
Expand Up @@ -109,16 +109,6 @@ void QgsAnnotationWidget::on_mMapMarkerButton_clicked()
}
}

void QgsAnnotationWidget::on_mFrameColorButton_colorChanged( const QColor &color )
{
if ( !mItem )
{
return;
}

mItem->setFrameColor( color );
}

void QgsAnnotationWidget::updateCenterIcon()
{
if ( !mMarkerSymbol )
Expand All @@ -129,13 +119,3 @@ void QgsAnnotationWidget::updateCenterIcon()
mMapMarkerButton->setIcon( icon );
}

void QgsAnnotationWidget::on_mBackgroundColorButton_colorChanged( const QColor &color )
{
if ( !mItem )
{
return;
}

mItem->setFrameBackgroundColor( color );
}

2 changes: 0 additions & 2 deletions src/app/qgsannotationwidget.h
Expand Up @@ -36,8 +36,6 @@ class APP_EXPORT QgsAnnotationWidget: public QWidget, private Ui::QgsAnnotationW

private slots:
void on_mMapMarkerButton_clicked();
void on_mFrameColorButton_colorChanged( const QColor &color );
void on_mBackgroundColorButton_colorChanged( const QColor &color );

private:
QgsAnnotationItem* mItem;
Expand Down

0 comments on commit 95fd61c

Please sign in to comment.