summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-24 16:56:22 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-24 16:56:22 +0100
commit69f188e13db64d8a3b17e49351d0be0ac3676b99 (patch)
tree91162d9940f775ce6478b247c2d2439b2bef624a /src
parent81312913ad26aaee12eeabd3f27a537806c97049 (diff)
Thinko in previous.
Diffstat (limited to 'src')
-rw-r--r--src/interop_subtitle_asset.cc2
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 ()) {