Archived issue #0023275
restore command set name of result variable incorrectly if absolute path is used.
Description
restore /...../shape.brep
The name result variable is /...../shape.brep instead of shape.
The name result variable is /...../shape.brep instead of shape.
Public activity
5 archived notes
Participants are labeled by their role within this record.
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".
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".
The Git branch CR23275 is ready to be reviewed.
Dear oan, please review.
Dear oan, please review.
I have no comments.
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.
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
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