Fix failure to reset state to "to fit DCP" properly (#2081).
authorCarl Hetherington <cth@carlh.net>
Sun, 19 Sep 2021 20:19:58 +0000 (22:19 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 19 Sep 2021 21:00:22 +0000 (23:00 +0200)
src/wx/video_panel.cc

index c7330ef5942565c611ae14fb6457295a7f5739f9..33961ea1dcae72d60ba9ab75c2e89f5d4213b625 100644 (file)
@@ -700,6 +700,7 @@ VideoPanel::scale_fit_clicked ()
 {
        for (auto i: _parent->selected_video()) {
                i->video->set_custom_ratio (optional<float>());
+               i->video->set_custom_size (optional<dcp::Size>());
        }
 }