1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-21 10:55:33 +03:00

0030657: Visualization - misprint in Graphic3d_ZLayerSettings::SetOrigin()

Add missing initialization of Geom_Transformation object.
This commit is contained in:
kgv 2019-04-17 22:23:51 +03:00 committed by bugmaster
parent 1ec17fb48a
commit 130bc3c097

View File

@ -71,6 +71,7 @@ struct Graphic3d_ZLayerSettings
if (!theOrigin.IsEqual (gp_XYZ(0.0, 0.0, 0.0), gp::Resolution())) if (!theOrigin.IsEqual (gp_XYZ(0.0, 0.0, 0.0), gp::Resolution()))
{ {
myOriginTrsf = new Geom_Transformation(); myOriginTrsf = new Geom_Transformation();
myOriginTrsf->SetTranslation (theOrigin);
} }
} }