[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 plot central line
From: Rene Kuettner <rene () bitkanal ! net>
Date: 2013-01-19 14:26:05
Message-ID: 20130119142605.635EDA6091 () git ! kde ! org
[Download RAW message or body]
Git commit 68b7defd4cd54498e1b649b7b420d5475e175103 by Rene Kuettner.
Committed on 19/01/2013 at 15:25.
Pushed by renek into branch 'esasocis-2012-eclipse'.
EclipsesPlugin: Do not plot central line for non-central eclipses
M +2 -2 src/plugins/render/eclipses/EclipsesPlugin.cpp
http://commits.kde.org/marble/68b7defd4cd54498e1b649b7b420d5475e175103
diff --git a/src/plugins/render/eclipses/EclipsesPlugin.cpp \
b/src/plugins/render/eclipses/EclipsesPlugin.cpp index e6a3565..3acfbf4 100644
--- a/src/plugins/render/eclipses/EclipsesPlugin.cpp
+++ b/src/plugins/render/eclipses/EclipsesPlugin.cpp
@@ -257,8 +257,8 @@ bool EclipsesPlugin::renderItem( GeoPainter *painter, \
EclipsesItem *item ) QList<GeoDataCoordinates>::const_iterator ci;
int phase = item->phase();
- // plot central line for central eclipses
- if( m_configWidget->checkBoxShowCentralLine->isChecked() ) {
+ // plot central line
+ if( m_configWidget->checkBoxShowCentralLine->isChecked() && phase > 3 ) {
painter->setPen( Qt::black );
painter->drawPolyline( item->centralLine() );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic