From 5304efb89e046f356f77ca5e87c75e9a140ce157 Mon Sep 17 00:00:00 2001
From: Mohcine Chraibi <m.chraibi@fz-juelich.de>
Date: Mon, 22 Oct 2018 13:31:35 +0200
Subject: [PATCH] fix for negative frames (#86)

---
 methods/Method_D.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/methods/Method_D.cpp b/methods/Method_D.cpp
index 42eba1bd..560dafa7 100644
--- a/methods/Method_D.cpp
+++ b/methods/Method_D.cpp
@@ -129,7 +129,7 @@ bool Method_D::Process (const PedData& peddata,const std::string& scriptsLocatio
           int frid =  frameNr + minFrame;
           //padd the frameid with 0
           std::ostringstream ss;
-          ss << std::setw(5) << std::setfill('0') << frid;
+          ss << std::setw(5) << std::setfill('0') << std::internal << frid;
           const std::string str_frid = ss.str();
           if(!(frid%50))
           {
-- 
GitLab