xref: /AOO41X/main/graphite/graphite-2.3.1_debug.patch (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1--- misc/silgraphite-2.3.1/engine/src/segment/SegmentAux.cpp    2008-08-21 16:24:32.000000000 +0200
2+++ misc/build/silgraphite-2.3.1/engine/src/segment/SegmentAux.cpp  2011-02-21 13:22:23.159834368 +0100
3@@ -247,7 +247,9 @@
4 GlyphSetIterator::reference GlyphSetIterator::operator*() const
5 {
6    assert(m_pseg != 0);
7-   assert(m_vit != std::vector<int>::const_iterator());
8+        // #i116227# the check below is well meant but breaks itself when using stlport with debug facilities
9+        // a valid iterator cannot be compared to an empty one in that case
10+   // assert(m_vit != std::vector<int>::const_iterator());
11                                                        // in the case of a non-contiguous list
12    return m_pseg->m_prgginf[(*m_vit) - m_pseg->m_isloutGinf0];
13 }
14