From: <vo...@us...> - 2013-07-24 19:32:33
|
Revision: 4420 http://sourceforge.net/p/moneymanagerex/code/4420 Author: vomikan Date: 2013-07-24 19:32:30 +0000 (Wed, 24 Jul 2013) Log Message: ----------- fixes for previous commit Modified Paths: -------------- trunk/src/assetdialog.cpp Modified: trunk/src/assetdialog.cpp =================================================================== --- trunk/src/assetdialog.cpp 2013-07-24 13:27:39 UTC (rev 4419) +++ trunk/src/assetdialog.cpp 2013-07-24 19:32:30 UTC (rev 4420) @@ -26,8 +26,8 @@ enum { - IDC_COMBO_TYPE = wxID_HIGHEST + 1, - IDC_NOTES, + IDC_COMBO_TYPE = wxID_HIGHEST + 1, + IDC_NOTES, }; } // namespace @@ -46,9 +46,9 @@ {} mmAssetDialog::mmAssetDialog(wxWindow* parent, mmAssetsPanel* assetsPanel, int asset_id, bool edit) -: assetsPanel_(assetsPanel) -, assetID_(asset_id) -, m_edit(edit) + : assetsPanel_(assetsPanel) + , assetID_(asset_id) + , m_edit(edit) { long style = wxCAPTION | wxSYSTEM_MENU | wxCLOSE_BOX; @@ -85,11 +85,9 @@ m_assetName->SetValue(asset->ASSETNAME); m_notes->SetValue(asset->NOTES); - m_dpc->SetValue(Model_Asset::STARTDATE(asset)); + m_value->SetValue(CurrencyFormatter::float2String(asset->VALUE)); -// m_value->SetValue(asset->VALUE); - wxString valueChangeRate; valueChangeRate.Printf("%.3f", asset->VALUECHANGERATE); m_valueChangeRate->SetValue(valueChangeRate); @@ -97,7 +95,7 @@ wxString valueChangeTypeStr = asset->VALUECHANGE; m_valueChange->SetStringSelection(wxGetTranslation(valueChangeTypeStr)); enableDisableRate(valueChangeTypeStr != ASSET_RATE_DEF[TAssetEntry::RATE_NONE]); - m_assetType->SetStringSelection(wxGetTranslation(asset->VALUECHANGE)); + m_assetType->SetStringSelection(wxGetTranslation(asset->ASSETTYPE)); } void mmAssetDialog::CreateControls() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |