From 130bc3c09728a63920a87c193fe5a3d5cc008d0a Mon Sep 17 00:00:00 2001 From: kgv Date: Wed, 17 Apr 2019 22:23:51 +0300 Subject: [PATCH] 0030657: Visualization - misprint in Graphic3d_ZLayerSettings::SetOrigin() Add missing initialization of Geom_Transformation object. --- src/Graphic3d/Graphic3d_ZLayerSettings.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Graphic3d/Graphic3d_ZLayerSettings.hxx b/src/Graphic3d/Graphic3d_ZLayerSettings.hxx index 25ee49ef3a..fa2233c393 100644 --- a/src/Graphic3d/Graphic3d_ZLayerSettings.hxx +++ b/src/Graphic3d/Graphic3d_ZLayerSettings.hxx @@ -71,6 +71,7 @@ struct Graphic3d_ZLayerSettings if (!theOrigin.IsEqual (gp_XYZ(0.0, 0.0, 0.0), gp::Resolution())) { myOriginTrsf = new Geom_Transformation(); + myOriginTrsf->SetTranslation (theOrigin); } } -- 2.20.1