Skip to content

Commit

Permalink
Merge pull request moneymanagerex#260 from moneymanagerex/vomikan_dev
Browse files Browse the repository at this point in the history
bugfix [bugs:moneymanagerex#536]
  • Loading branch information
gabriele-v committed Nov 2, 2014
2 parents 8c036fe + 89ed54b commit 511cbae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/assetspanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ bool mmAssetsPanel::Create(wxWindow *parent
m_listCtrlAssets->EnsureVisible(this->m_assets.size() - 1);

this->windowsFreezeThaw();

GetSizer()->Fit(this);
GetSizer()->SetSizeHints(this);
return true;
}

Expand Down Expand Up @@ -617,10 +618,10 @@ void mmAssetsPanel::updateExtraAssetData(int selIndex)
{
const Model_Asset::Data& asset = this->m_assets[selIndex];
enableEditDeleteButtons(true);
wxString miniInfo = "\t";
miniInfo += wxString::Format(_("Change in Value: %s %s")
, wxGetTranslation(asset.VALUECHANGE)
, (Model_Asset::rate(asset) != Model_Asset::RATE_NONE) ? wxString::Format("= %.2f %", asset.VALUECHANGERATE) : "");
const auto& change_rate = (Model_Asset::rate(asset) != Model_Asset::RATE_NONE)
? wxString::Format("%.2f %%", asset.VALUECHANGERATE) : "";
const wxString& miniInfo = " " + wxString::Format(_("Change in Value: %s %s")
, wxGetTranslation(asset.VALUECHANGE), change_rate);

st->SetLabelText(asset.NOTES);
stm->SetLabelText(miniInfo);
Expand Down

0 comments on commit 511cbae

Please sign in to comment.