Skip to content
Permalink
Browse files
Fix move label tool with PostGIS (similar problem as #9148)
  • Loading branch information
wonder-sk committed Jun 11, 2014
1 parent 863a83b commit df85395ee433357e04b7810d16f7e70e2fef2950
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/qgsmaptoollabel.cpp
@@ -480,8 +480,10 @@ bool QgsMapToolLabel::dataDefinedPosition( QgsVectorLayer* vlayer, const QgsFeat
}

const QgsAttributes& attributes = f.attributes();
x = attributes[xCol].toDouble( &xSuccess );
y = attributes[yCol].toDouble( &ySuccess );
if ( !attributes[xCol].isNull() )
x = attributes[xCol].toDouble( &xSuccess );
if ( !attributes[yCol].isNull() )
y = attributes[yCol].toDouble( &ySuccess );

return true;
}

0 comments on commit df85395

Please sign in to comment.