diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-24 16:56:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-24 16:56:22 +0100 |
| commit | 69f188e13db64d8a3b17e49351d0be0ac3676b99 (patch) | |
| tree | 91162d9940f775ce6478b247c2d2439b2bef624a /src | |
| parent | 81312913ad26aaee12eeabd3f27a537806c97049 (diff) | |
Thinko in previous.
Diffstat (limited to 'src')
| -rw-r--r-- | src/interop_subtitle_asset.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interop_subtitle_asset.cc b/src/interop_subtitle_asset.cc index a3850f04..620fed73 100644 --- a/src/interop_subtitle_asset.cc +++ b/src/interop_subtitle_asset.cc @@ -164,7 +164,7 @@ InteropSubtitleAsset::write (boost::filesystem::path p) const throw FileError ("could not open font file for writing", file, errno); } list<Font>::const_iterator j = _fonts.begin (); - while (j->load_id != i->id) { + while (j != _fonts.end() && j->load_id != i->id) { ++j; } if (j != _fonts.end ()) { |
