Skip to content
Permalink
Browse files
(remove useless code)
  • Loading branch information
olivierdalang authored and mhugent committed Jan 22, 2013
1 parent c5b8b69 commit 1631be4f7075e8f3b783e2a7e3cc6650e811c7a1
Showing with 0 additions and 16 deletions.
  1. +0 −4 src/core/composer/qgscomposerlegend.cpp
  2. +0 −12 src/core/composer/qgscomposerscalebar.cpp
@@ -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();
@@ -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 )
@@ -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 )
@@ -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 );
}



0 comments on commit 1631be4

Please sign in to comment.