Compile fix for those systems where pos_type is not typedef'd to int.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37751 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-02-21 16:08:02 +00:00
parent 624f725acb
commit 9866d2a097

View File

@ -183,7 +183,7 @@ bool GuiErrorList::goTo(int item)
BufferView * bv = const_cast<BufferView *>(bufferview()); BufferView * bv = const_cast<BufferView *>(bufferview());
// FIXME LFUN // FIXME LFUN
// If we used an LFUN, we would not need these lines: // If we used an LFUN, we would not need these lines:
bv->putSelectionAt(dit, max(range, 1), false); bv->putSelectionAt(dit, max(range, pos_type(1)), false);
bv->processUpdateFlags(Update::Force | Update::FitCursor); bv->processUpdateFlags(Update::Force | Update::FitCursor);
return true; return true;
} }