From: Jürgen Spitzmüller Date: Sun, 17 Dec 2006 12:52:53 +0000 (+0000) Subject: * src/text2.C (getPitNearY): X-Git-Tag: 1.6.10~11521 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ddac5c916baee9bb12513ebb0e8ca5152ba4ce88;p=features.git * src/text2.C (getPitNearY): - fix compiler warning (unsigned/signed int comparision). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16312 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/text2.C b/src/text2.C index 5ae0ce3006..9a9057c391 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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.