Opened 17 years ago
Last modified 16 years ago
#581 assigned defect
Wrong including when including a project with IncludePrj
Reported by: | Christian Paz | Owned by: | Jorge |
---|---|---|---|
Priority: | highest | Milestone: | |
Component: | Interface | Version: | head |
Severity: | blocker | Keywords: | |
Cc: |
Description
When using IncludePrj to include a project, it reads the section Included TOL Files in the .prj file, this section is wrongly saved when you have ten or more files, because it saves with an alphabetical order and not a numeric order as it would be expected, let's say:
[Included TOL Files]
Set test_12.1=Include("test01.tol");
Set test_12.10=Include("test10.tol");
Set test_12.11=Include("test11.tol");
Set test_12.12=Include("test12.tol");
Set test_12.2=Include("test02.tol");
Set test_12.3=Include("test03.tol");
Set test_12.4=Include("test04.tol");
Set test_12.5=Include("test05.tol");
Set test_12.6=Include("test06.tol");
Set test_12.7=Include("test07.tol");
Set test_12.8=Include("test08.tol");
Set test_12.9=Include("test09.tol");
instead of
Set test_12.1=Include("test01.tol");
Set test_12.2=Include("test02.tol");
Set test_12.3=Include("test03.tol");
Set test_12.4=Include("test04.tol");
Set test_12.5=Include("test05.tol");
Set test_12.6=Include("test06.tol");
Set test_12.7=Include("test07.tol");
Set test_12.8=Include("test08.tol");
Set test_12.9=Include("test09.tol");
Set test_12.10=Include("test10.tol");
Set test_12.11=Include("test11.tol");
Set test_12.12=Include("test12.tol");
that is the order run when running it from Tolbase. I think the problem is in ::TolProject::NodeToFile function in lib/toltk/tolprj.tcl, when sorting it does not specify that a numerical order is needed
Thanks in advance
Christian
Change History (1)
comment:1 Changed 16 years ago by
Owner: | changed from jmdedios to Jorge |
---|---|
Status: | new → assigned |