Skip to content

Commit 10ecfdd

Browse files
author
wonder
committedJan 16, 2010
Corrected default symbol layer sizes to work with milimeters
git-svn-id: http://svn.osgeo.org/qgis/trunk@12772 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eefb4ba commit 10ecfdd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎src/core/symbology-ng/qgsfillsymbollayerv2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define DEFAULT_SIMPLEFILL_STYLE Qt::SolidPattern
99
#define DEFAULT_SIMPLEFILL_BORDERCOLOR QColor(0,0,0)
1010
#define DEFAULT_SIMPLEFILL_BORDERSTYLE Qt::SolidLine
11-
#define DEFAULT_SIMPLEFILL_BORDERWIDTH 1.0
11+
#define DEFAULT_SIMPLEFILL_BORDERWIDTH DEFAULT_LINE_WIDTH
1212

1313
#include <QPen>
1414
#include <QBrush>

‎src/core/symbology-ng/qgslinesymbollayerv2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <QPen>
88

99
#define DEFAULT_SIMPLELINE_COLOR QColor(0,0,0)
10-
#define DEFAULT_SIMPLELINE_WIDTH 1
10+
#define DEFAULT_SIMPLELINE_WIDTH DEFAULT_LINE_WIDTH
1111
#define DEFAULT_SIMPLELINE_PENSTYLE Qt::SolidLine
1212
#define DEFAULT_SIMPLELINE_JOINSTYLE Qt::BevelJoin
1313
#define DEFAULT_SIMPLELINE_CAPSTYLE Qt::SquareCap
@@ -63,7 +63,7 @@ class CORE_EXPORT QgsSimpleLineSymbolLayerV2 : public QgsLineSymbolLayerV2
6363
/////////
6464

6565
#define DEFAULT_MARKERLINE_ROTATE true
66-
#define DEFAULT_MARKERLINE_INTERVAL 10
66+
#define DEFAULT_MARKERLINE_INTERVAL 3
6767

6868
class CORE_EXPORT QgsMarkerLineSymbolLayerV2 : public QgsLineSymbolLayerV2
6969
{

‎src/core/symbology-ng/qgsmarkersymbollayerv2.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define DEFAULT_SIMPLEMARKER_NAME "circle"
88
#define DEFAULT_SIMPLEMARKER_COLOR QColor(255,0,0)
99
#define DEFAULT_SIMPLEMARKER_BORDERCOLOR QColor(0,0,0)
10-
#define DEFAULT_SIMPLEMARKER_SIZE 9
10+
#define DEFAULT_SIMPLEMARKER_SIZE DEFAULT_POINT_SIZE
1111
#define DEFAULT_SIMPLEMARKER_ANGLE 0
1212

1313
#include <QPen>
@@ -63,7 +63,7 @@ class CORE_EXPORT QgsSimpleMarkerSymbolLayerV2 : public QgsMarkerSymbolLayerV2
6363
//////////
6464

6565
#define DEFAULT_SVGMARKER_NAME "/symbol/Star1.svg"
66-
#define DEFAULT_SVGMARKER_SIZE 9
66+
#define DEFAULT_SVGMARKER_SIZE 2*DEFAULT_POINT_SIZE
6767
#define DEFAULT_SVGMARKER_ANGLE 0
6868

6969
class CORE_EXPORT QgsSvgMarkerSymbolLayerV2 : public QgsMarkerSymbolLayerV2

0 commit comments

Comments
 (0)
Please sign in to comment.