Skip to content

Commit ed8b487

Browse files
author
timlinux
committedNov 1, 2009
Use labelAttributes rather than layerAttributes where appropriate
git-svn-id: http://svn.osgeo.org/qgis/trunk@11879 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f9ffdc1 commit ed8b487

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎src/app/qgslabeldialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void QgsLabelDialog::init( )
5555
{
5656
QgsDebugMsg( "entering." );
5757

58-
QgsLabelAttributes * myLabelAttributes = mLabel->layerAttributes();
58+
QgsLabelAttributes * myLabelAttributes = mLabel->labelAttributes();
5959
//populate a string list with all the field names which will be used to set up the
6060
//data bound combos
6161
QgsFieldMap& myFieldsMap = mLabel->fields();
@@ -340,8 +340,8 @@ void QgsLabelDialog::apply()
340340
QgsDebugMsg( "entering." );
341341

342342
//set the label props that are NOT bound to a field in the attributes tbl
343-
//All of these are set in the layerAttributes member of the layer
344-
QgsLabelAttributes * myLabelAttributes = mLabel->layerAttributes();
343+
//All of these are set in the labelAttributes member of the layer
344+
QgsLabelAttributes * myLabelAttributes = mLabel->labelAttributes();
345345
myLabelAttributes->setText( leDefaultLabel->text() );
346346
myLabelAttributes->setFamily( mFont.family() );
347347
int myTypeInt = 0;

‎src/gui/qgsquickprint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ void QgsQuickPrint::scaleTextLabels( int theScaleFactor, SymbolScalingType theDi
688688
if ( mypVectorLayer )
689689
{
690690
QgsLabel * mypLabel = mypVectorLayer->label();
691-
QgsLabelAttributes * mypLabelAttributes = mypLabel->layerAttributes();
691+
QgsLabelAttributes * mypLabelAttributes = mypLabel->labelAttributes();
692692
if ( theDirection == ScaleUp )
693693
{
694694
mypLabelAttributes->setSize(

0 commit comments

Comments
 (0)
Please sign in to comment.