summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Fedoskin <afedoskin3@gmail.com>2016-10-04 03:18:31 (GMT)
committerArtem Fedoskin <afedoskin3@gmail.com>2016-10-04 03:18:37 (GMT)
commit94b829b2497daee7c32a10ce7246ece74e027314 (patch)
treec70a110e309e8127a843404c9a1ae156c4e82959
parent3bccca1c952ed678859b51944447dbb9214e7a5e (diff)
Fixed issue when lines were not extended up to horizon.
-rw-r--r--kstars/skyqpainter.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/kstars/skyqpainter.cpp b/kstars/skyqpainter.cpp
index 75f6b6d..ba65574 100644
--- a/kstars/skyqpainter.cpp
+++ b/kstars/skyqpainter.cpp
@@ -270,8 +270,16 @@ void SkyQPainter::drawSkyPolyline(LineList* list, SkipList* skipList, LineListLa
doSkip = skipList->skip(j);
}
+ bool pointsVisible = false;
+ //Temporary solution to avoid random lines in Gnomonic projection and draw lines up to horizon
+ if(SkyMap::Instance()->projector()->type() == Projector::Gnomonic) {
+ if ( isVisible && isVisibleLast ) pointsVisible = true;
+ } else {
+ if ( isVisible || isVisibleLast ) pointsVisible = true;
+ }
+
if ( !doSkip ) {
- if ( isVisible && isVisibleLast ) {
+ if(pointsVisible) {
drawLine( oLast, oThis );
if ( label )
label->updateLabelCandidates( oThis.x(), oThis.y(), list, j );