Skip to content
Permalink
Browse files

Fix annotation colors are modified when cancel is clicked

  • Loading branch information
nyalldawson committed Jul 21, 2016
1 parent 0352745 commit 95fd61c7bd1b9619759382a7f546b385ac33bd8d
Showing with 0 additions and 22 deletions.
  1. +0 −20 src/app/qgsannotationwidget.cpp
  2. +0 −2 src/app/qgsannotationwidget.h
@@ -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 )
@@ -129,13 +119,3 @@ void QgsAnnotationWidget::updateCenterIcon()
mMapMarkerButton->setIcon( icon );
}

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

mItem->setFrameBackgroundColor( color );
}

@@ -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;

0 comments on commit 95fd61c

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