projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a couple more crashes with incorrect KDMs (#1000).
[dcpomatic.git]
/
src
/
wx
/
filter_editor.cc
diff --git
a/src/wx/filter_editor.cc
b/src/wx/filter_editor.cc
index 4dd18004bfcae15547363c413b99d59f93236a6a..d70402b5f68c2aaf94ef597b9d9a234215c112f5 100644
(file)
--- a/
src/wx/filter_editor.cc
+++ b/
src/wx/filter_editor.cc
@@
-1,19
+1,20
@@
/*
Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
/*
Copyright (C) 2012 Carl Hetherington <cth@carlh.net>
- This program is free software; you can redistribute it and/or modify
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
-
This program
is distributed in the hope that it will be useful,
+
DCP-o-matic
is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
*/
*/
@@
-34,7
+35,7
@@
FilterEditor::FilterEditor (wxWindow* parent, vector<Filter const *> const & act
{
wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
SetSizer (sizer);
{
wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
SetSizer (sizer);
-
+
vector<Filter const *> filters = Filter::all ();
typedef map<string, list<Filter const *> > CategoryMap;
vector<Filter const *> filters = Filter::all ();
typedef map<string, list<Filter const *> > CategoryMap;
@@
-64,7
+65,7
@@
FilterEditor::FilterEditor (wxWindow* parent, vector<Filter const *> const & act
bool const a = find (active.begin(), active.end(), *j) != active.end ();
b->SetValue (a);
_filters[*j] = b;
bool const a = find (active.begin(), active.end(), *j) != active.end ();
b->SetValue (a);
_filters[*j] = b;
- b->Bind (wxEVT_C
OMMAND_CHECKBOX_CLICKED
, boost::bind (&FilterEditor::filter_toggled, this));
+ b->Bind (wxEVT_C
HECKBOX
, boost::bind (&FilterEditor::filter_toggled, this));
sizer->Add (b);
}
sizer->Add (b);
}