[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [marble/esasocis-2012-eclipse] src/plugins/render/eclipses: EclipsesPlugin: Do not set brush in ever
From:       Rene Kuettner <rene () bitkanal ! net>
Date:       2013-01-19 14:33:22
Message-ID: 20130119143322.BD383A6091 () git ! kde ! org
[Download RAW message or body]

Git commit 9f7dd83f70aeb2f41af1642d3c9381e4b82914ab by Rene Kuettner.
Committed on 19/01/2013 at 15:33.
Pushed by renek into branch 'esasocis-2012-eclipse'.

EclipsesPlugin: Do not set brush in every loop cycle

M  +3    -3    src/plugins/render/eclipses/EclipsesPlugin.cpp

http://commits.kde.org/marble/9f7dd83f70aeb2f41af1642d3c9381e4b82914ab

diff --git a/src/plugins/render/eclipses/EclipsesPlugin.cpp \
b/src/plugins/render/eclipses/EclipsesPlugin.cpp index 3acfbf4..b3a8eea 100644
--- a/src/plugins/render/eclipses/EclipsesPlugin.cpp
+++ b/src/plugins/render/eclipses/EclipsesPlugin.cpp
@@ -327,10 +327,10 @@ bool EclipsesPlugin::renderItem( GeoPainter *painter, \
EclipsesItem *item )  painter->setPen( Oxygen::hotOrange5 );
         const QList<GeoDataLinearRing> boundaries = item->sunBoundaries();
         QList<GeoDataLinearRing>::const_iterator i = boundaries.constBegin();
+        QColor sunBoundingBrush ( Oxygen::hotOrange5 );
+        sunBoundingBrush.setAlpha( 64 );
+        painter->setBrush( sunBoundingBrush );
         for( ; i != boundaries.constEnd(); ++i ) {
-            QColor sunBoundingBrush ( Oxygen::hotOrange5 );
-            sunBoundingBrush.setAlpha( 64 );
-            painter->setBrush( sunBoundingBrush );
             painter->drawPolygon( *i );
         }
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic