strange code for texturemapped font

I've found a very stange code which deals with texturemapped font setting.
in the following function, it should return MyTextureMappedFont value in ATextureMappedFont,
but ATextureMappedFont is always asigned as false;
---------------------------------------------------
#if defined(OCC2934) && defined(WNT)
ATextureMappedFont = MyTextureMappedFont;
#endif
ATextureMappedFont = Standard_False; //
----------------------------------------------------

I think it should be something like this

---------------------------------------------------
#if defined(OCC2934) && defined(WNT)
ATextureMappedFont = MyTextureMappedFont;
#elseif
ATextureMappedFont = Standard_False;
#endif
----------------------------------------------------

However, it results in memory leak in using multi-view.

Is there anyone who can deal with this problem?

Sangsu Lee
MIDAS IT

------------------------------------------------------

void Graphic3d_AspectText3d::Values (Quantity_Color& AColor, Graphic3d_NameOfFont& AFont, Standard_Real& AFactor, Standard_Real& ASpace, Aspect_TypeOfStyleText& AStyle,Aspect_TypeOfDisplayText& ADisplayType,Quantity_Color& AColorSubTitle, Standard_Boolean& ATextureMappedFont) const {

AColor = MyColor;
AFont = MyFont;
AFactor = MyFactor;
ASpace = MySpace;
AStyle = MyStyle;
ADisplayType = MyDisplayType;
AColorSubTitle = MyColorSubTitle;
#if defined(OCC2934) && defined(WNT)
ATextureMappedFont = MyTextureMappedFont;
#endif
ATextureMappedFont = Standard_False; //
}

Forum supervisor's picture

Dear Mr. Lee Sangsu,

Thank you very much for this contribution !
I am glad to inform you that your modification has been registered as an improvement request with reference number OCC11590 in our bug tracking system. We shall test your solution and, in case of positive results, we shall integrate this improvement in future versions of Open CASCADE Technology.

To check if this improvement is integrated in a release, please refer to the Release Notes at http://www.opencascade.org/getocc/whatsnew/.

Thank you, and best regards !
Forum Supervisor