Skip to content

Commit 1631be4

Browse files
olivierdalangmhugent
authored andcommittedJan 22, 2013
(remove useless code)
1 parent c5b8b69 commit 1631be4

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed
 

‎src/core/composer/qgscomposerlegend.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -796,10 +796,6 @@ bool QgsComposerLegend::readXML( const QDomElement& itemElem, const QDomDocument
796796
int blue = fontColorElem.attribute( "blue", "0" ).toInt();
797797
mFontColor = QColor( red, green, blue );
798798
}
799-
else
800-
{
801-
mFontColor = QColor( 0, 0, 0 );
802-
}
803799

804800
//spaces
805801
mBoxSpace = itemElem.attribute( "boxSpace", "2.0" ).toDouble();

‎src/core/composer/qgscomposerscalebar.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,6 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
485485
int blue = fillColorElem.attribute( "blue", "0" ).toInt();
486486
mBrush.setColor(QColor( red, green, blue ));
487487
}
488-
else
489-
{
490-
mBrush.setColor(QColor( 0, 0, 0 ));
491-
}
492488
//pen color
493489
QDomNodeList penColorList = itemElem.elementsByTagName( "penColor" );
494490
if ( penColorList.size() > 0 )
@@ -499,10 +495,6 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
499495
int blue = penColorElem.attribute( "blue", "0" ).toInt();
500496
mPen.setColor(QColor( red, green, blue ));
501497
}
502-
else
503-
{
504-
mPen.setColor(QColor( 0, 0, 0 ));
505-
}
506498
//font color
507499
QDomNodeList fontColorList = itemElem.elementsByTagName( "fontColor" );
508500
if ( fontColorList.size() > 0 )
@@ -513,10 +505,6 @@ bool QgsComposerScaleBar::readXML( const QDomElement& itemElem, const QDomDocume
513505
int blue = fontColorElem.attribute( "blue", "0" ).toInt();
514506
mFontColor = QColor( red, green, blue );
515507
}
516-
else
517-
{
518-
mFontColor = QColor( 0, 0, 0 );
519-
}
520508

521509

522510

0 commit comments

Comments
 (0)
Please sign in to comment.