View Issue Details

IDProjectCategoryView StatusLast Update
0022522Open CASCADEOCCT:DRAWpublic2013-04-29 15:21
Reporterkgv Assigned Toaba 
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
OSAll 
Product Version6.5.3 
Target Version6.6.0Fixed in Version6.6.0 
Summary0022522: Small BUG in DRAWEXE - vtrihedron command
DescriptionIn code no check performed for existed object that cause this exception:
>>An exception was caught 656843A4 : Standard_MultiplyDefined: DoubleMap:Bind
>>** Exception ** 656843A4 : Standard_MultiplyDefined: DoubleMap:Bind

Sample 1:
pload ALL;
box t 10 10 10;
vinit;
vdisplay t;
vtrihedron t;

Sample 2:
pload ALL;
vinit;
vdisplay t;
vdisplay t;

I think that command should tell that name already bound and probably
automatically unbind + bind new object.
TagsNo tags attached.
Test case numberbugs demo bug22522_1 bug22522_2

Activities

aba

2012-10-30 16:18

developer   ~0022014

Last edited: 2012-10-30 16:20

A condition was added to VTrihedron function in ViewerTest_ObjectCommands.cxx to check if name chosen for a new object is already bound. And if it is true, the command informs about that, then it unbinds the name and binds it to a new object.

aba

2012-10-30 16:21

developer   ~0022015

The Git branch CR22522 is ready to be reviewed.
Dear kgv, please review.

kgv

2012-10-30 17:31

developer   ~0022019

Dear aba,

Please look for usage of VDisplayAISObject() in other places to follow common behavior.

aba

2012-10-31 10:44

developer   ~0022024

Dear kgv,

I've changed the code so that VDisplayAISObject() is used to control the name binding and an object displaying.
Please review.

kgv

2012-10-31 11:42

developer   ~0022027

Branch was reviewed and remarks were applied. Please test it.

apn

2012-11-02 16:10

administrator   ~0022083

Dear BugMaster,
Branch CR22522 (and products from GIT master) was compiled on Linux and Windows platforms and tested.

Regression:
Not detected

Improvements:
Not detected

Testing case:
bugs demo bug22522_1 bug22522_2 - OK

Related Changesets

occt: master dc9b6d23

2012-11-15 10:35:21

aba

Details Diff
0022522: Small BUG in DRAWEXE - vtrihedron command

Add condition to check if shape name is already bound
Used VDisplayAISObject() to display an object
vtrihedron - fixed parsing of arguments with Z direction definition
Affected Issues
0022522
mod - src/ViewerTest/ViewerTest_ObjectCommands.cxx Diff File

Issue History

Date Modified Username Field Change
2011-08-02 11:31 bugmaster Category OCCT:MOA => OCCT:Modeling Algorithms
2011-09-13 14:12 bugmaster Category OCCT:Modeling Algorithms => OCCT:DRAW
2011-09-13 14:12 bugmaster Fixed in Version EMPTY =>
2011-09-13 14:12 bugmaster Description Updated
2012-10-26 14:50 kgv Product Version => 6.5.3
2012-10-26 14:50 kgv Target Version => 6.6.0
2012-10-26 14:52 san Assigned To bugmaster => aba
2012-10-26 14:52 san Status new => assigned
2012-10-30 16:18 aba Note Added: 0022014
2012-10-30 16:20 aba Note Edited: 0022014
2012-10-30 16:21 aba Note Added: 0022015
2012-10-30 16:21 aba Assigned To aba => kgv
2012-10-30 16:21 aba Status assigned => resolved
2012-10-30 17:31 kgv Note Added: 0022019
2012-10-30 17:31 kgv Assigned To kgv => aba
2012-10-30 17:31 kgv Status resolved => assigned
2012-10-31 10:44 aba Note Added: 0022024
2012-10-31 10:44 aba Assigned To aba => kgv
2012-10-31 10:44 aba Status assigned => resolved
2012-10-31 11:42 kgv Note Added: 0022027
2012-10-31 11:42 kgv Assigned To kgv => bugmaster
2012-10-31 11:42 kgv Status resolved => reviewed
2012-11-02 16:10 apn Note Added: 0022083
2012-11-02 16:10 apn Test case number => bugs demo bug22522_1 bug22522_2
2012-11-02 16:10 apn Status reviewed => tested
2012-11-16 13:03 aba Changeset attached => occt master dc9b6d23
2012-11-16 13:03 aba Assigned To bugmaster => aba
2012-11-16 13:03 aba Status tested => verified
2012-11-16 13:03 aba Resolution open => fixed
2012-12-10 17:16 aba Changeset attached => occt master dc9b6d23
2013-04-23 13:36 aiv Status verified => closed
2013-04-29 15:21 aiv Fixed in Version => 6.6.0