Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Bug in CXTPPropertyGridItemDouble
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug in CXTPPropertyGridItemDouble

 Post Reply Post Reply
Author
Message
nobs View Drop Down
Groupie
Groupie
Avatar

Joined: 12 September 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote nobs Quote  Post ReplyReply Direct Link To This Post Topic: Bug in CXTPPropertyGridItemDouble
    Posted: 08 November 2006 at 6:45am
Hello

There is a Bug in the
CXTPPropertyGridItemDouble class
in the function:

CString CXTPPropertyGridItemDouble::DoubleToString(double dValue)
you have the code
    CString strFormat(m_strFormat);
    if (strFormat.IsEmpty())
        strFormat = _T("%0.2f");

    CString strValue;
    strValue.Format(m_strFormat, dValue);
    return strValue;

The red line should be replaced with  like
    strValue.Format(strFormat, dValue);
                    ^^^^^^^
                                             you are referencing the wrong variable

File   XTPPropertyGridItemNumber.cpp
Linenumber 193

I found this problem when using the function  "UseSystemDecimalSymbol"


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.043 seconds.