Commit 9674b121221e2e63e2720705b9113b88bdc0184b

Authored by Benjamin Renard
1 parent 0b5a6e69
Exists in master

Do not check frames if there is not transformation to apply

server/kernel/src/Transformation/TransformationAbstract.cpp
@@ -56,13 +56,13 @@ namespace TREPS @@ -56,13 +56,13 @@ namespace TREPS
56 bool noTrans = (strcmp(srcFrame,dstFrame) == 0); 56 bool noTrans = (strcmp(srcFrame,dstFrame) == 0);
57 57
58 //set frames 58 //set frames
59 - if (!this->checkFrame(srcFrame) && !noTrans) 59 + if (!noTrans && !this->checkFrame(srcFrame))
60 { 60 {
61 LOG4CXX_ERROR(this->app->getLog()->getPtr(),"Unknown frame for this engine : " << srcFrame); 61 LOG4CXX_ERROR(this->app->getLog()->getPtr(),"Unknown frame for this engine : " << srcFrame);
62 return false; 62 return false;
63 } 63 }
64 64
65 - if (!this->checkFrame(dstFrame) && !noTrans) 65 + if (!noTrans && !this->checkFrame(dstFrame))
66 { 66 {
67 LOG4CXX_ERROR(this->app->getLog()->getPtr(),"Unknown frame for this engine : " << dstFrame); 67 LOG4CXX_ERROR(this->app->getLog()->getPtr(),"Unknown frame for this engine : " << dstFrame);
68 return false; 68 return false;