summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 ()) {