Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
different fix for 5a1bcf3
  • Loading branch information
jef-n committed Dec 7, 2013
1 parent 7a0b36c commit 5192e8d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
18 changes: 18 additions & 0 deletions src/core/symbology-ng/qgssymbollayerv2.cpp
Expand Up @@ -18,6 +18,7 @@
#include "qgsexpression.h"
#include "qgsrendercontext.h"
#include "qgsvectorlayer.h"
#include "qgsdxfexport.h"

#include <QSize>
#include <QPainter>
Expand Down Expand Up @@ -76,6 +77,23 @@ void QgsSymbolLayerV2::removeDataDefinedProperties()
mDataDefinedProperties.clear();
}

bool QgsSymbolLayerV2::writeDxf( QgsDxfExport& e,
double mmMapUnitScaleFactor,
const QString& layerName,
const QgsSymbolV2RenderContext* context,
const QgsFeature* f,
const QPointF& shift ) const
{
Q_UNUSED( e );
Q_UNUSED( mmMapUnitScaleFactor );
Q_UNUSED( layerName );
Q_UNUSED( context );
Q_UNUSED( f );
Q_UNUSED( shift );
return false;
}


void QgsSymbolLayerV2::prepareExpressions( const QgsVectorLayer* vl, double scale )
{
if ( !vl )
Expand Down
11 changes: 8 additions & 3 deletions src/core/symbology-ng/qgssymbollayerv2.h
Expand Up @@ -31,13 +31,14 @@
#include <QDomElement>

#include "qgssymbolv2.h"

#include "qgssymbollayerv2utils.h" // QgsStringMap
#include "qgsdxfexport.h"

class QPainter;
class QSize;
class QPolygonF;

class QgsDxfExport;
class QgsExpression;
class QgsRenderContext;

Expand Down Expand Up @@ -93,8 +94,12 @@ class CORE_EXPORT QgsSymbolLayerV2
virtual void removeDataDefinedProperties();
bool hasDataDefinedProperties() const { return mDataDefinedProperties.size() > 0; }

virtual bool writeDxf( QgsDxfExport& e, double mmMapUnitScaleFactor, const QString& layerName, const QgsSymbolV2RenderContext* context, const QgsFeature* f, const QPointF& shift = QPointF( 0.0, 0.0 ) ) const
{ Q_UNUSED( e ); Q_UNUSED( mmMapUnitScaleFactor ); Q_UNUSED( layerName ); Q_UNUSED( context ); Q_UNUSED( f ); Q_UNUSED( shift ); return false; }
virtual bool writeDxf( QgsDxfExport& e,
double mmMapUnitScaleFactor,
const QString& layerName,
const QgsSymbolV2RenderContext* context,
const QgsFeature* f,
const QPointF& shift = QPointF( 0.0, 0.0 ) ) const;

protected:
QgsSymbolLayerV2( QgsSymbolV2::SymbolType type, bool locked = false )
Expand Down
1 change: 0 additions & 1 deletion src/gui/CMakeLists.txt
Expand Up @@ -392,7 +392,6 @@ INCLUDE_DIRECTORIES(
../core/composer
../core/raster
../core/symbology-ng
../core/dxf
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/../ui
${QWT_INCLUDE_DIR}
Expand Down
1 change: 0 additions & 1 deletion tests/src/core/CMakeLists.txt
Expand Up @@ -8,7 +8,6 @@ SET (util_SRCS qgscompositionchecker.cpp)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src/core
${CMAKE_SOURCE_DIR}/src/core/dxf
${CMAKE_SOURCE_DIR}/src/core/composer
${CMAKE_SOURCE_DIR}/src/core/raster
${CMAKE_SOURCE_DIR}/src/core/symbology-ng
Expand Down

0 comments on commit 5192e8d

Please sign in to comment.