MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0025682Community[OCCT] OCCT:Application Frameworkpublic2015-01-06 05:262017-05-25 15:20
ReporterVico Liang 
Assigned Tompv 
PrioritylowSeverityminor 
StatusnewResolutionopen 
PlatformWindowsOSVC++ 2013OS Version64 bit
Product Version 
Target Version[OCCT] UnscheduledFixed in Version 
Summary0025682: TObj_Model::GetModelName() should store in document in unicode mode instead of ascii mode.
DescriptionThese places are affected:
TObj_Assistant::FindModel(const Standard_CString theName);
BinTObjDrivers_ReferenceDriver
XmlTObjDrivers_ReferenceDriver
TagsNo tags attached.
Test case number
Attached Filescxx file icon BinTObjDrivers_ReferenceDriver.cxx (5,068 bytes) 2015-01-06 07:00
cxx file icon XmlTObjDrivers_ReferenceDriver.cxx (5,387 bytes) 2015-01-06 07:01
? file icon TObj_Assistant.hxx (3,520 bytes) 2015-01-06 07:01
cxx file icon TObj_Assistant.cxx (6,688 bytes) 2015-01-06 07:01
? file icon XmlObjMgt.hxx (3,691 bytes) 2015-01-06 07:01
cxx file icon XmlObjMgt.cxx (14,592 bytes) 2015-01-06 07:02

- Relationships

-  Notes
(0035919)
Vico Liang (developer)
2015-01-06 06:25

A new method can be added to fix the unicode model name issue.
Handle(TObj_Model) TObj_Assistant::FindModel(const TCollection_ExtendedString& theName)
{
    Standard_Integer i = getModels().Length();
    Handle(TObj_Model) aModel;
    for (; i > 0; i--)
    {
        aModel = Handle(TObj_Model)::DownCast(getModels().Value(i));
        if (theName == aModel->GetModelName()->String())
            break;
    }
    if (i == 0)
        aModel.Nullify();

    return aModel;
}
(0035920)
Vico Liang (developer)
2015-01-06 07:02

The fix code are uploaded please have a review.
(0037254)
szy (administrator)
2015-02-09 19:00

Dear Vico,
I would suggested you to make the contribution (of source files) via the Collaborative portal (using OCCT Git) - http://dev.opencascade.org/index.php?q=home/get_involved. [^]
As you probably know the website dedicated to contributors is available now: http://dev.opencascade.org. [^]
It would allow as 1) sped-up the process as 2) track all processing history of the issue in frames of the current bug.

SZY

- Issue History
Date Modified Username Field Change
2015-01-06 05:26 Vico Liang New Issue
2015-01-06 05:26 Vico Liang Assigned To => szy
2015-01-06 06:25 Vico Liang Note Added: 0035919
2015-01-06 07:00 Vico Liang File Added: BinTObjDrivers_ReferenceDriver.cxx
2015-01-06 07:01 Vico Liang File Added: XmlTObjDrivers_ReferenceDriver.cxx
2015-01-06 07:01 Vico Liang File Added: TObj_Assistant.hxx
2015-01-06 07:01 Vico Liang File Added: TObj_Assistant.cxx
2015-01-06 07:01 Vico Liang File Added: XmlObjMgt.hxx
2015-01-06 07:02 Vico Liang File Added: XmlObjMgt.cxx
2015-01-06 07:02 Vico Liang Note Added: 0035920
2015-02-09 19:00 szy Note Added: 0037254
2015-03-05 11:44 szy Priority normal => low
2015-03-05 11:44 szy Target Version 6.9.0 => 7.1.0
2016-02-17 18:17 szy Assigned To szy => mpv
2016-10-25 16:05 mpv Target Version 7.1.0 => 7.2.0
2017-05-25 15:20 mpv Target Version 7.2.0 => Unscheduled


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker