]> OCCT Git - occt.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)
committerbugmaster <bugmaster@opencascade.com>
Thu, 5 Oct 2017 10:18:15 +0000 (13:18 +0300)
commit03d960b8de01cb671fc5df31b693da3b56adfcef
treec0c8c27d36125cdd8ff81c66840a5ba6c80e0b23
parent9b372aa8ba5b72ad2f447dffa498a9feb30d36c5
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