summaryrefslogtreecommitdiff
path: root/src/wx/fonts_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-09 16:18:00 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-09 16:18:00 +0100
commit2a01820de9229fd778787421ec4f7bbf1e4b8bf1 (patch)
tree9243a62fb21cea583f6b012fcc0ec1088ae19c84 /src/wx/fonts_dialog.cc
parentea3e9db20ede512d5e5d73b41c4cb796eeef56d3 (diff)
Hide Font members behind accessors.
Diffstat (limited to 'src/wx/fonts_dialog.cc')
-rw-r--r--src/wx/fonts_dialog.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/fonts_dialog.cc b/src/wx/fonts_dialog.cc
index 22078dafd..aa9fd1540 100644
--- a/src/wx/fonts_dialog.cc
+++ b/src/wx/fonts_dialog.cc
@@ -93,9 +93,9 @@ FontsDialog::setup ()
wxListItem item;
item.SetId (n);
_fonts->InsertItem (item);
- _fonts->SetItem (n, 0, std_to_wx ((*i)->id));
- if ((*i)->file) {
- _fonts->SetItem (n, 1, (*i)->file.get().leaf().string ());
+ _fonts->SetItem (n, 0, std_to_wx ((*i)->id ()));
+ if ((*i)->file ()) {
+ _fonts->SetItem (n, 1, (*i)->file().get().leaf().string ());
}
++n;
}
@@ -129,8 +129,8 @@ FontsDialog::set_file_clicked ()
list<shared_ptr<Font> > fonts = content->fonts ();
for (list<shared_ptr<Font> >::iterator i = fonts.begin(); i != fonts.end(); ++i) {
- if ((*i)->id == id) {
- (*i)->file = wx_to_std (d->GetPath ());
+ if ((*i)->id() == id) {
+ (*i)->set_file (wx_to_std (d->GetPath ()));
}
}