Skip to content

Commit

Permalink
bugfix [bugs:#536]
Browse files Browse the repository at this point in the history
  • Loading branch information
vomikan authored and gabriele-v committed Nov 2, 2014
1 parent 8582a90 commit 7cbf19f
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 7cbf19f

Please sign in to comment.