]> OCCT Git - occt-copy.git/commit
0029165: Visualization - misuse of enumeration in Prs3d_DatumAspect
authorabv <abv@opencascade.com>
Fri, 29 Sep 2017 16:04:13 +0000 (19:04 +0300)
committerkgv <kgv@opencascade.com>
Mon, 4 Dec 2017 18:17:08 +0000 (21:17 +0300)
commitddb008c962b3f7ccf55d07b9ca8f83e1a23ff366
tree483d31c980f5ad537997e56085de01cbdf3d8f5a
parentf9537f4b6077f0edaa1699513991bcce8e1691aa
0029165: Visualization - misuse of enumeration in Prs3d_DatumAspect

Methods SetDrawFirstAndSecondAxis() and SetDrawThirdAxis() of the class Prs3d_DatumAspect are corrected to ensure that myAxis may be set only to valid values of the enum, and avoid unsafe operations.
src/Prs3d/Prs3d_DatumAspect.cxx