Fix g++-5 build bug (Fix #385)

Tested on g++ (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

Note: Actually,it is not a BUG. It is compiler related issue. The issue #385 is not shown in g++-6 and clang.
This commit is contained in:
Youngsuk Chung 2019-12-09 14:46:12 +09:00
parent f30260153f
commit c8bda73f01

View File

@ -347,11 +347,11 @@ std::string to_string(orientation orientation)
{ {
switch (orientation) switch (orientation)
{ {
case orientation::default_orientation: case xlnt::orientation::default_orientation:
return "default"; return "default";
case orientation::landscape: case xlnt::orientation::landscape:
return "landscape"; return "landscape";
case orientation::portrait: case xlnt::orientation::portrait:
return "portrait"; return "portrait";
} }
default_case("default"); default_case("default");