Fix crash with no atmos.
[libdcp.git] / src / types.cc
index 30c565c90813af1ba5307bfce1af7a06ee11e4fc..7853d11c6e874bc9c7de26bef821b05947a4e046 100644 (file)
@@ -253,11 +253,11 @@ dcp::direction_to_string (Direction v)
 Direction
 dcp::string_to_direction (string s)
 {
-       if (s == "ltr") {
+       if (s == "ltr" || s == "horizontal") {
                return DIRECTION_LTR;
        } else if (s == "rtl") {
                return DIRECTION_RTL;
-       } else if (s == "ttb") {
+       } else if (s == "ttb" || s == "vertical") {
                return DIRECTION_TTB;
        } else if (s == "btt") {
                return DIRECTION_BTT;