summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) {
+ }
}
}