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
(cherry-picked from 95fd61c)
  • Loading branch information
nyalldawson committed Jul 26, 2016
1 parent 1e454f8 commit 6539ae1
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 @@ -112,16 +112,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 @@ -132,13 +122,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 6539ae1

Please sign in to comment.