diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-07-28 15:50:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-07-28 15:50:26 +0100 |
| commit | 9d44328087d41016745ace95e7e989135056149b (patch) | |
| tree | 9b7208d6364a949ded183ff380c54602075a26ca /src/stl_binary_writer.cc | |
| parent | 084eff7331b1a7c9923282c5860f490648ad633a (diff) | |
Make HorizontalPosition a class containing a reference enum.
Diffstat (limited to 'src/stl_binary_writer.cc')
| -rw-r--r-- | src/stl_binary_writer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc index e4e06fb..d4fe9ed 100644 --- a/src/stl_binary_writer.cc +++ b/src/stl_binary_writer.cc @@ -268,14 +268,14 @@ sub::write_stl_binary ( /* Justification code */ /* XXX: this assumes the first line has the right value */ - switch (i->lines.front().horizontal_position) { - case LEFT: + switch (i->lines.front().horizontal_position.reference) { + case LEFT_OF_SCREEN: put_int_as_int (buffer + 14, tables.justification_enum_to_file (JUSTIFICATION_LEFT), 1); break; - case CENTRE: + case HORIZONTAL_CENTRE_OF_SCREEN: put_int_as_int (buffer + 14, tables.justification_enum_to_file (JUSTIFICATION_CENTRE), 1); break; - case RIGHT: + case RIGHT_OF_SCREEN: put_int_as_int (buffer + 14, tables.justification_enum_to_file (JUSTIFICATION_RIGHT), 1); break; } |
