[Debian-astro-commits] [gyoto] 125/221: Fix bug in WorldLineIntegState, which failed to update gg_ in init()
    Thibaut Jean-Claude Paumard 
    thibaut at moszumanska.debian.org
       
    Fri May 22 20:52:39 UTC 2015
    
    
  
This is an automated email from the git hooks/post-receive script.
thibaut pushed a commit to branch master
in repository gyoto.
commit 116d62889340f0a067f7479ce82b524b9f501aa1
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Tue Dec 2 15:29:50 2014 +0100
    Fix bug in WorldLineIntegState, which failed to update gg_ in init()
---
 lib/WorldlineIntegState.C | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/lib/WorldlineIntegState.C b/lib/WorldlineIntegState.C
index 624ed0c..fc069e6 100644
--- a/lib/WorldlineIntegState.C
+++ b/lib/WorldlineIntegState.C
@@ -65,7 +65,9 @@ Worldline::IntegState::Generic::Generic(Worldline *parent) :
   SmartPointee(), line_(parent) {};
 void
 Worldline::IntegState::Generic::init(){
+  if (!line_) return;
   adaptive_=line_->adaptive();
+  gg_=line_->metric();
 }
 void
 Worldline::IntegState::Generic::init(Worldline * line,
-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git
    
    
More information about the Debian-astro-commits
mailing list