Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198081 Details for
Bug 277937
x11-misc/xplanet: fails to build with gcc-4.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a bugfix from upstream
xplanet_r154.patch (text/plain), 1.30 KB, created by
Zeev Tarantov
on 2009-07-15 17:41:22 UTC
(
hide
)
Description:
a bugfix from upstream
Filename:
MIME Type:
Creator:
Zeev Tarantov
Created:
2009-07-15 17:41:22 UTC
Size:
1.30 KB
patch
obsolete
>diff --git a/trunk/src/libmultiple/addOrbits.cpp b/trunk/src/libmultiple/addOrbits.cpp >index 8061120..3da5581 100644 >--- a/trunk/src/libmultiple/addOrbits.cpp >+++ b/trunk/src/libmultiple/addOrbits.cpp >@@ -86,9 +86,13 @@ addOrbits(const double jd0, const View *view, > const double period = p->Period(); > if (period == 0) return; > >+ // Units of orbit circumference > const double startOrbit = currentProperties->StartOrbit(); > const double stopOrbit = currentProperties->StopOrbit(); >+ >+ // degrees > const double delOrbit = currentProperties->DelOrbit(); >+ > const unsigned char *color = currentProperties->OrbitColor(); > const int thickness = currentProperties->ArcThickness(); > >@@ -103,10 +107,11 @@ addOrbits(const double jd0, const View *view, > const double startTime = jd0 + startOrbit * period; > const double stopTime = jd0 + stopOrbit * period; > >- const int numTimes = (int) (180/delOrbit + 0.5); >- >+ int numTimes = (int) abs(360 * startOrbit / delOrbit + 0.5); > addArc(startTime, jd0, numTimes, color, thickness, view, width, height, > Prx, Pry, Prz, p, annotationMap); >+ >+ numTimes = (int) abs(360 * stopOrbit / delOrbit + 0.5); > addArc(jd0, stopTime, numTimes, color, thickness, view, width, height, > Prx, Pry, Prz, p, annotationMap); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 277937
:
198055
|
198080
| 198081 |
198082
|
198084