Thinko in previous.
authorCarl Hetherington <cth@carlh.net>
Wed, 24 Jun 2015 15:56:22 +0000 (16:56 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 24 Jun 2015 15:56:22 +0000 (16:56 +0100)
src/interop_subtitle_asset.cc

index a3850f0408b7b02137336b61449e8d86c16fdee6..620fed7362d6d1bc206d20326d7de8ab27219506 100644 (file)
@@ -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 ()) {