summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-04 20:11:29 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-04 20:11:29 +0000
commit689d56339857b0a82156641f28392b8d2f11beea (patch)
tree9cb15585f2122c79d8b4a0a44fae830cee3eaa32 /src
parentfa2900fedac1030141c56b691c7f6e0f7e629424 (diff)
Fix incorrect reading of ScreenAspectRatio.
Diffstat (limited to 'src')
-rw-r--r--src/reel_picture_asset.cc12
1 files changed, 6 insertions, 6 deletions
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<const cxml::Node> 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<float> ("ScreenAspectRatio");
- _screen_aspect_ratio = Fraction (f * 1000, 1000);
- } catch (bad_cast& e) {
+ /* It's not a fraction */
+ try {
+ float f = node->number_child<float> ("ScreenAspectRatio");
+ _screen_aspect_ratio = Fraction (f * 1000, 1000);
+ } catch (bad_cast& e) {
+ }
}
}