Skip to content

Commit

Permalink
marker data defined anchor fix, fixes #9579
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed May 19, 2014
1 parent a76ec72 commit f470570
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/symbology-ng/qgsellipsesymbollayerv2.cpp
Expand Up @@ -292,6 +292,7 @@ QString QgsEllipseSymbolLayerV2::layerType() const

void QgsEllipseSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
{
QgsMarkerSymbolLayerV2::startRender( context ); // get anchor point expressions
if ( !context.feature() || !hasDataDefinedProperty() )
{
preparePath( mSymbolName, context );
Expand Down
1 change: 1 addition & 0 deletions src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Expand Up @@ -1124,6 +1124,7 @@ QString QgsSvgMarkerSymbolLayerV2::layerType() const

void QgsSvgMarkerSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
{
QgsMarkerSymbolLayerV2::startRender( context ); // get anchor point expressions
mOrigSize = mSize; // save in case the size would be data defined
Q_UNUSED( context );
prepareExpressions( context.fields(), context.renderContext().rendererScale() );
Expand Down
6 changes: 4 additions & 2 deletions src/gui/symbology-ng/qgsdatadefinedsymboldialog.cpp
Expand Up @@ -102,12 +102,14 @@ QString QgsDataDefinedSymbolDialog::fileNameHelpText()

QString QgsDataDefinedSymbolDialog::horizontalAnchorHelpText()
{
return tr( "'left'|'center'|'right'" );
// Don't translate, localized keywords are not supported.
return "'left'|'center'|'right'";
}

QString QgsDataDefinedSymbolDialog::verticalAnchorHelpText()
{
return tr( "'top'|'center'|'bottom'" );
// Don't translate, localized keywords are not supported.
return "'top'|'center'|'bottom'";
}

QString QgsDataDefinedSymbolDialog::gradientTypeHelpText()
Expand Down

0 comments on commit f470570

Please sign in to comment.