Changeset 2294

Show
Ignore:
Timestamp:
03/08/10 18:28:53 (5 months ago)
Author:
gm78
Message:

Closes #577. Internally, when converting from the snap-to structure to the snap-to COM object, area code, navaid type, quality, and classification were converted from characters to their integer values rather than strings by the _bstr_t constructor. This has been corrected.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FalconView/trunk/public/Applications/FalconView/overlay/snapto.cpp

    r179 r2294  
    323323   spSnapToPointsList->m_dSlaveVar = m_slave_var; 
    324324   spSnapToPointsList->m_sPointSource = m_pnt_src_rs; 
    325    spSnapToPointsList->m_bstrAreaCode = _bstr_t(m_area_code); 
    326    spSnapToPointsList->m_bstrNavaidType = _bstr_t(m_nav_type); 
     325   spSnapToPointsList->m_bstrAreaCode = _bstr_t(&m_area_code); 
     326   spSnapToPointsList->m_bstrNavaidType = _bstr_t(&m_nav_type); 
    327327   spSnapToPointsList->m_bstrDtdId = _bstr_t(m_dtd_id); 
    328328   spSnapToPointsList->m_bstrRSFixPoint = _bstr_t(m_fix_rs); 
    329329   spSnapToPointsList->m_bstrRSDescription = _bstr_t(m_description_rs); 
    330330   spSnapToPointsList->m_bstrCountryCode = _bstr_t(m_country_code); 
    331    spSnapToPointsList->m_bstrQuality = _bstr_t(m_qlt); 
    332    spSnapToPointsList->m_bstrClassification = _bstr_t(m_cls); 
     331   spSnapToPointsList->m_bstrQuality = _bstr_t(&m_qlt); 
     332   spSnapToPointsList->m_bstrClassification = _bstr_t(&m_cls); 
    333333   spSnapToPointsList->m_dNavaidFreqMHz = m_nav_freq_MHz; 
    334334   spSnapToPointsList->m_dNavaidChannel = m_nav_chan;