DiscussionsIssue archiveOCCT:Foundation Classes

Archived issue #0023275

restore command set name of result variable incorrectly if absolute path is used.

Open CASCADEOCCT:Foundation Classesclosed5 public notes

Search issues

Description

restore /...../shape.brep

The name result variable is /...../shape.brep instead of shape.

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 1
src/DrawResources/StandardCommands.tcl was edited.
In line 284 code after condition 'if(name=="")' was changed to parse variable name from the file path. So, if we have 'restore /...../shape.brep', name of variable equals to "shape".
02Commenter 2
The Git branch CR23275 is ready to be reviewed.
Dear oan, please review.
03Commenter 1
I have no comments.
04Commenter 4
Please use git branch CR23275_1: I have simplified the code using Tcl command "file" to process filename, and added a test case. Branch CR23275 deleted.
05Commenter 2
Dear Commenter 3,
Branch CR23275_1 (and products from GIT master) was compiled on Linux and Windows platforms and tested.

Regression:
Not detected

Improvements:
Not detected

Testing case:
demo draw restore - OK