Skip to content

Commit 6d942e5

Browse files
committed
Dxf export: fix linestyle export for simple line
1 parent e846521 commit 6d942e5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/core/symbology-ng/qgslinesymbollayerv2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ QVector<qreal> QgsSimpleLineSymbolLayerV2::dxfCustomDashPattern( QgsSymbolV2::Ou
426426
return mUseCustomDashPattern ? mCustomDashVector : QVector<qreal>() ;
427427
}
428428

429+
Qt::PenStyle QgsSimpleLineSymbolLayerV2::dxfPenStyle() const
430+
{
431+
return mPenStyle;
432+
}
433+
429434
double QgsSimpleLineSymbolLayerV2::dxfWidth( const QgsDxfExport& e, const QgsSymbolV2RenderContext& context ) const
430435
{
431436
double width = mWidth;

src/core/symbology-ng/qgslinesymbollayerv2.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class CORE_EXPORT QgsSimpleLineSymbolLayerV2 : public QgsLineSymbolLayerV2
9797
void setDrawInsidePolygon( bool drawInsidePolygon ) { mDrawInsidePolygon = drawInsidePolygon; }
9898

9999
QVector<qreal> dxfCustomDashPattern( QgsSymbolV2::OutputUnit& unit ) const;
100+
Qt::PenStyle dxfPenStyle() const;
100101

101102
double dxfWidth( const QgsDxfExport& e, const QgsSymbolV2RenderContext& context ) const;
102103
QColor dxfColor( const QgsSymbolV2RenderContext& context ) const;

0 commit comments

Comments
 (0)