Skip to content

Commit

Permalink
[composer] Better default line thickness (fix #13912)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 30, 2015
1 parent 3910c45 commit 53b116a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposerscalebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ void QgsComposerScaleBar::applyDefaultSettings()
mPen = QPen( Qt::black );
mPen.setJoinStyle( mLineJoinStyle );
mPen.setCapStyle( mLineCapStyle );
mPen.setWidthF( 1.0 );
mPen.setWidthF( 0.3 );

mBrush.setColor( Qt::black );
mBrush.setStyle( Qt::SolidPattern );
Expand Down Expand Up @@ -760,7 +760,7 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
mMaxBarWidth = itemElem.attribute( "maxBarWidth", "150" ).toInt();
mSegmentMillimeters = itemElem.attribute( "segmentMillimeters", "0.0" ).toDouble();
mNumMapUnitsPerScaleBarUnit = itemElem.attribute( "numMapUnitsPerScaleBarUnit", "1.0" ).toDouble();
mPen.setWidthF( itemElem.attribute( "outlineWidth", "1.0" ).toDouble() );
mPen.setWidthF( itemElem.attribute( "outlineWidth", "0.3" ).toDouble() );
mUnitLabeling = itemElem.attribute( "unitLabel" );
mLineJoinStyle = QgsSymbolLayerV2Utils::decodePenJoinStyle( itemElem.attribute( "lineJoinStyle", "miter" ) );
mPen.setJoinStyle( mLineJoinStyle );
Expand Down

0 comments on commit 53b116a

Please sign in to comment.