]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
Scons: handle the case when qt4 is in system directories
[lyx.git] / src / text2.C
index 5ae0ce3006185f73b24ffb96b6cadb87968dedc0..9a9057c39112bad1352a30a498548c37af6350fa 100644 (file)
@@ -943,7 +943,7 @@ pit_type LyXText::getPitNearY(BufferView & bv, int y)
                && y >= last->second.y_ + int(pars_[last->first].descent())) {
                pit = last->first + 1;
                //  and we are not at the last paragraph in the inset.
-               if (pit == pars_.size())
+               if (pit == int(pars_.size()))
                        return last->first;
                // then this is the paragraph we are looking for.
                // rebreak it and update the CoordCache.