View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007781 | Open CASCADE | OCCT:Visualization | public | 2005-01-20 16:14 | 2012-01-16 16:51 |
Reporter | Assigned To | ||||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 5.2.3 | ||||
Summary | 0007781: Mistake in TPrsStd_AISPresentation::UnsetMode() | ||||
Description | The following code is used currently to unset display mode: ... Handle(AIS_InteractiveContext) ctx; Handle(TPrsStd_AISViewer) viewer; if( TPrsStd_AISViewer::Find(Label(), viewer) ) ctx = viewer->GetInteractiveContext(); if( !ctx.IsNull() ) ctx->SetDisplayMode(myAIS, Standard_False); <<< INCORRECT LINE !!! else myAIS->UnsetDisplayMode(); ... First, it is incorrect to use method AIS_InteractiveContext::SetDisplayMode() for this purpose - it does not unset the object's display mode for any combination of its arguments. Second, there is mistake in arguments when SetDisplayMode() is calling: second argument has type Standard_Integer ( not Standard_Boolean ). | ||||
Additional information and documentation updates | Documentation remark, added by SKT 2005-02-07 12:25:29: Changes: In TPrsStd_AISPresentation::UnsetMode() method was called AIS_InteractiveContext::UnsetDisplayMode() instead of AIS_InteractiveContext::SetDisplayMode(). Modified entities: TPrsStd/TPrsStd_AISPresentation/UnsetMode() | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2005-01-21 11:50 | bugmaster | Assigned To | bugmaster => san |
2005-01-21 11:50 | bugmaster | Status | new => assigned |
2005-01-21 11:53 |
|
Assigned To | san => skt |
2005-01-24 14:44 |
|
Status | assigned => resolved |
2005-01-26 12:51 |
|
CC | => apv, aki |
2005-02-02 11:12 |
|
Status | resolved => tested |
2005-02-02 12:03 | bugmaster | CC | => skt |
2005-02-14 10:04 | bugmaster | Status | tested => verified |
2005-05-06 15:32 | bugmaster | Status | verified => closed |
2005-05-06 15:32 | bugmaster | Resolution | @0@ => fixed |
2011-08-02 11:24 | bugmaster | Category | OCCT:VIZ => OCCT:Visualization |
2012-01-16 16:51 |
|
Assigned To | skt => |
2012-01-16 16:51 |
|
Description Updated | |
2012-01-16 16:51 |
|
Additional Information Updated |