From 689d56339857b0a82156641f28392b8d2f11beea Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 4 Dec 2015 20:11:29 +0000 Subject: Fix incorrect reading of ScreenAspectRatio. --- src/reel_picture_asset.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/reel_picture_asset.cc b/src/reel_picture_asset.cc index ccb4bd56..096d3476 100644 --- a/src/reel_picture_asset.cc +++ b/src/reel_picture_asset.cc @@ -60,13 +60,13 @@ ReelPictureAsset::ReelPictureAsset (shared_ptr node) try { _screen_aspect_ratio = Fraction (node->string_child ("ScreenAspectRatio")); } catch (XMLError& e) { - /* Maybe it's not a fraction */ - } - try { - float f = node->number_child ("ScreenAspectRatio"); - _screen_aspect_ratio = Fraction (f * 1000, 1000); - } catch (bad_cast& e) { + /* It's not a fraction */ + try { + float f = node->number_child ("ScreenAspectRatio"); + _screen_aspect_ratio = Fraction (f * 1000, 1000); + } catch (bad_cast& e) { + } } } -- cgit v1.2.3