summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-08 09:48:47 -0800
committerCarl Hetherington <cth@carlh.net>2013-11-08 09:48:47 -0800
commit31f7328d3f15729aa13881bb3582423c5a5fc27a (patch)
tree9016b8e605e0b6a59a0ca9f2e31416a057676d94
parent5673d7a051662afd129fa409cdbf3adb6119689e (diff)
Remove erroneous double cast causing strange behaviour of J2K bandwidth control on 32-bit Linux.
-rw-r--r--ChangeLog5
-rw-r--r--src/wx/film_editor.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 43e9cd7df..851a85b52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-08 Carl Hetherington <carl@ubuntu>
+
+ * Fix strange behaviour of J2K bandwidth control
+ on 32-bit Linux.
+
2013-11-07 Carl Hetherington <cth@carlh.net>
* Open file dialog starts in the configured DCP directory,
diff --git a/src/wx/film_editor.cc b/src/wx/film_editor.cc
index 1472c8b89..b789a8266 100644
--- a/src/wx/film_editor.cc
+++ b/src/wx/film_editor.cc
@@ -425,7 +425,7 @@ FilmEditor::film_changed (Film::Property p)
setup_dcp_name ();
break;
case Film::J2K_BANDWIDTH:
- checked_set (_j2k_bandwidth, double (_film->j2k_bandwidth()) / 1000000);
+ checked_set (_j2k_bandwidth, _film->j2k_bandwidth() / 1000000);
break;
case Film::USE_DCI_NAME:
checked_set (_use_dci_name, _film->use_dci_name ());