Skip to content

Commit

Permalink
(remove useless code)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang authored and mhugent committed Jan 22, 2013
1 parent c5b8b69 commit 1631be4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions src/core/composer/qgscomposerlegend.cpp
Expand Up @@ -796,10 +796,6 @@ bool QgsComposerLegend::readXML( const QDomElement& itemElem, const QDomDocument
int blue = fontColorElem.attribute( "blue", "0" ).toInt();
mFontColor = QColor( red, green, blue );
}
else
{
mFontColor = QColor( 0, 0, 0 );
}

//spaces
mBoxSpace = itemElem.attribute( "boxSpace", "2.0" ).toDouble();
Expand Down
12 changes: 0 additions & 12 deletions src/core/composer/qgscomposerscalebar.cpp
Expand Up @@ -485,10 +485,6 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
int blue = fillColorElem.attribute( "blue", "0" ).toInt();
mBrush.setColor(QColor( red, green, blue ));
}
else
{
mBrush.setColor(QColor( 0, 0, 0 ));
}
//pen color
QDomNodeList penColorList = itemElem.elementsByTagName( "penColor" );
if ( penColorList.size() > 0 )
Expand All @@ -499,10 +495,6 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
int blue = penColorElem.attribute( "blue", "0" ).toInt();
mPen.setColor(QColor( red, green, blue ));
}
else
{
mPen.setColor(QColor( 0, 0, 0 ));
}
//font color
QDomNodeList fontColorList = itemElem.elementsByTagName( "fontColor" );
if ( fontColorList.size() > 0 )
Expand All @@ -513,10 +505,6 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
int blue = fontColorElem.attribute( "blue", "0" ).toInt();
mFontColor = QColor( red, green, blue );
}
else
{
mFontColor = QColor( 0, 0, 0 );
}



Expand Down

0 comments on commit 1631be4

Please sign in to comment.