Skip to content
Permalink
Browse files

[composer] Better default line thickness (fix #13912)

  • Loading branch information
nyalldawson committed Nov 30, 2015
1 parent 3910c45 commit 53b116a8472edc2341a17351ea386c4a992945e5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposerscalebar.cpp
@@ -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 );
@@ -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 );

0 comments on commit 53b116a

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