projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix crash with no atmos.
[libdcp.git]
/
src
/
types.cc
diff --git
a/src/types.cc
b/src/types.cc
index 30c565c90813af1ba5307bfce1af7a06ee11e4fc..7853d11c6e874bc9c7de26bef821b05947a4e046 100644
(file)
--- a/
src/types.cc
+++ b/
src/types.cc
@@
-253,11
+253,11
@@
dcp::direction_to_string (Direction v)
Direction
dcp::string_to_direction (string s)
{
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;
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;
return DIRECTION_TTB;
} else if (s == "btt") {
return DIRECTION_BTT;