From 9674b121221e2e63e2720705b9113b88bdc0184b Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 19 Jun 2015 14:10:42 +0200 Subject: [PATCH] Do not check frames if there is not transformation to apply --- server/kernel/src/Transformation/TransformationAbstract.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/kernel/src/Transformation/TransformationAbstract.cpp b/server/kernel/src/Transformation/TransformationAbstract.cpp index 1deb7d4..afbaef0 100644 --- a/server/kernel/src/Transformation/TransformationAbstract.cpp +++ b/server/kernel/src/Transformation/TransformationAbstract.cpp @@ -56,13 +56,13 @@ namespace TREPS bool noTrans = (strcmp(srcFrame,dstFrame) == 0); //set frames - if (!this->checkFrame(srcFrame) && !noTrans) + if (!noTrans && !this->checkFrame(srcFrame)) { LOG4CXX_ERROR(this->app->getLog()->getPtr(),"Unknown frame for this engine : " << srcFrame); return false; } - if (!this->checkFrame(dstFrame) && !noTrans) + if (!noTrans && !this->checkFrame(dstFrame)) { LOG4CXX_ERROR(this->app->getLog()->getPtr(),"Unknown frame for this engine : " << dstFrame); return false; -- libgit2 0.21.2