Skip to content
Permalink
Browse files

Fix default opacity for annotation layers should be 1, not 100

  • Loading branch information
nyalldawson committed Aug 27, 2020
1 parent 4ba9761 commit 188492eee77942ff746382af69c84ee07a1a76c5
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/annotations/qgsannotationlayer.cpp
  2. +1 −1 src/core/annotations/qgsannotationlayer.h
@@ -37,7 +37,7 @@ QgsAnnotationLayer::~QgsAnnotationLayer()

void QgsAnnotationLayer::reset()
{
mOpacity = 100.0;
mOpacity = 1.0;
setCrs( QgsCoordinateReferenceSystem() );
setTransformContext( QgsCoordinateTransformContext() );
clear();
@@ -129,7 +129,7 @@ class CORE_EXPORT QgsAnnotationLayer : public QgsMapLayer

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

0 comments on commit 188492e

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