Fix failure to parse subrip where there are extra spaces in the time/position line.
[libsub.git] / src / vertical_reference.cc
index 69f9d8436f7da569fd17c2d562297c2e27b7b6a5..7dff96515379ef3e6a67f3948ac2b4db18a0d873 100644 (file)
@@ -28,12 +28,12 @@ VerticalReference
 sub::string_to_vertical_reference (string s)
 {
        if (s == "top") {
-               return TOP;
+               return TOP_OF_SCREEN;
        } else if (s == "center") {
-               return CENTRE;
+               return CENTRE_OF_SCREEN;
        } else if (s == "bottom") {
-               return BOTTOM;
+               return BOTTOM_OF_SCREEN;
        }
-       
+
        throw XMLError ("unknown subtitle valign type");
 }