Skip to content

Commit

Permalink
Fix default opacity for annotation layers should be 1, not 100
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 27, 2020
1 parent 4ba9761 commit 188492e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/annotations/qgsannotationlayer.cpp
Expand Up @@ -37,7 +37,7 @@ QgsAnnotationLayer::~QgsAnnotationLayer()

void QgsAnnotationLayer::reset()
{
mOpacity = 100.0;
mOpacity = 1.0;
setCrs( QgsCoordinateReferenceSystem() );
setTransformContext( QgsCoordinateTransformContext() );
clear();
Expand Down
2 changes: 1 addition & 1 deletion src/core/annotations/qgsannotationlayer.h
Expand Up @@ -129,7 +129,7 @@ class CORE_EXPORT QgsAnnotationLayer : public QgsMapLayer

private:
QMap<QString, QgsAnnotationItem *> mItems;
double mOpacity = 100;
double mOpacity = 1;
QgsCoordinateTransformContext mTransformContext;
};

Expand Down

0 comments on commit 188492e

Please sign in to comment.