src/coordcache.C: stop compiler complaint for std::min

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15495 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-10-22 20:38:10 +00:00
parent 8b5e79fc47
commit 55c10ff2b5

View File

@ -70,7 +70,7 @@ CoordCache::dump() const {
Paragraph const & par = lt->getPar(pit);
Point p = (*j).second;
lyxerr << "Paragraph " << pit << ": \"";
for (int k = 0; k < std::min(10, par.size()); ++k) {
for (int k = 0; k < std::min(static_cast<lyx::pos_type>(10), par.size()); ++k) {
lyxerr << to_utf8(docstring(1,par.getChar(k)));
}
lyxerr << "\" has point " << p.x_ << "," << p.y_ << std::endl;