From 9866d2a097d7297659c0f6bf56048a8e6c1669bf Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 21 Feb 2011 16:08:02 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiErrorList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiErrorList.cpp b/src/frontends/qt4/GuiErrorList.cpp index f51dcfda42..82c7a7f4dc 100644 --- a/src/frontends/qt4/GuiErrorList.cpp +++ b/src/frontends/qt4/GuiErrorList.cpp @@ -183,7 +183,7 @@ bool GuiErrorList::goTo(int item) BufferView * bv = const_cast(bufferview()); // FIXME LFUN // 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); return true; } -- 2.39.2