Skip to content

Commit f470570

Browse files
committed
marker data defined anchor fix, fixes #9579
1 parent a76ec72 commit f470570

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/core/symbology-ng/qgsellipsesymbollayerv2.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ QString QgsEllipseSymbolLayerV2::layerType() const
292292

293293
void QgsEllipseSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
294294
{
295+
QgsMarkerSymbolLayerV2::startRender( context ); // get anchor point expressions
295296
if ( !context.feature() || !hasDataDefinedProperty() )
296297
{
297298
preparePath( mSymbolName, context );

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,7 @@ QString QgsSvgMarkerSymbolLayerV2::layerType() const
11241124

11251125
void QgsSvgMarkerSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
11261126
{
1127+
QgsMarkerSymbolLayerV2::startRender( context ); // get anchor point expressions
11271128
mOrigSize = mSize; // save in case the size would be data defined
11281129
Q_UNUSED( context );
11291130
prepareExpressions( context.fields(), context.renderContext().rendererScale() );

src/gui/symbology-ng/qgsdatadefinedsymboldialog.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ QString QgsDataDefinedSymbolDialog::fileNameHelpText()
102102

103103
QString QgsDataDefinedSymbolDialog::horizontalAnchorHelpText()
104104
{
105-
return tr( "'left'|'center'|'right'" );
105+
// Don't translate, localized keywords are not supported.
106+
return "'left'|'center'|'right'";
106107
}
107108

108109
QString QgsDataDefinedSymbolDialog::verticalAnchorHelpText()
109110
{
110-
return tr( "'top'|'center'|'bottom'" );
111+
// Don't translate, localized keywords are not supported.
112+
return "'top'|'center'|'bottom'";
111113
}
112114

113115
QString QgsDataDefinedSymbolDialog::gradientTypeHelpText()

0 commit comments

Comments
 (0)