Archived issue #0022995
It is not possible to check presence of a document in OCAF session via IsInSession() on Windows
Description
A method TDocStd_Application::IsInSession() uses a combination of '\' and '/' slashes on Windows. Therefore, it is not possible to find out whether a document is in session or not (because an input path contains only one type of slashes).
Steps to reproduce
1. Open a document in an OCAF application
2. Call IsInSession() using the document path -> it returns 0, which means that the document is not in the session.
2. Call IsInSession() using the document path -> it returns 0, which means that the document is not in the session.
Public activity
5 archived notes
Participants are labeled by their role within this record.
Dear Sergey,
Could you please revise the fix?
A fix is put to http://svn/svn/occt/branches/22995. The only modified file is TDocStd_Application.cxx. Look please at the method IsInSession().
Thanks,
Vlad
Could you please revise the fix?
A fix is put to http://svn/svn/occt/branches/22995. The only modified file is TDocStd_Application.cxx. Look please at the method IsInSession().
Thanks,
Vlad
A draw-command is IsInSession.
Reviewed. TDocStd_Application.cxx is Ok.
Dear Commenter 1,
Workbench KAS:dev:apn-22995-occt was created from SVN branch http://svn/svn/occt/branches/22995
(and apn-22995-products from trunk) and compiled on Windows and Linux platforms.
There are not regressions in apn-22995-products regarding to KAS:dev:products-20120210-opt
Test case for this fix is chl 934 T2. It's OK on Linux and on WNT.
See results in /QADisk/occttests/results/KAS/dev/ apn-22995-products_17022012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120210-opt_10022012/lin
See test cases in /QADisk/occttests/tests/ED
Workbench KAS:dev:apn-22995-occt was created from SVN branch http://svn/svn/occt/branches/22995
(and apn-22995-products from trunk) and compiled on Windows and Linux platforms.
There are not regressions in apn-22995-products regarding to KAS:dev:products-20120210-opt
Test case for this fix is chl 934 T2. It's OK on Linux and on WNT.
See results in /QADisk/occttests/results/KAS/dev/ apn-22995-products_17022012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120210-opt_10022012/lin
See test cases in /QADisk/occttests/tests/ED
Integrated into trunk of occt repository
Date: 2012-02-22 11:38:15 +0400 (Wed, 22 Feb 2012)
New Revision: 10580
Modified:
trunk/src/TDocStd/TDocStd_Application.cxx
Date: 2012-02-22 11:38:15 +0400 (Wed, 22 Feb 2012)
New Revision: 10580
Modified:
trunk/src/TDocStd/TDocStd_Application.cxx