Commit 957b615b (Fix another crash with Grid pasting) breaks compilation with Visual C++ 2019

Stephan Witt st.witt at gmx.net
Sun Aug 16 19:00:49 UTC 2020


Am 16.08.2020 um 19:23 schrieb Thibaut Cuvelier <tcuvelier at lyx.org>:
> 
> Hi,
> 
> I just tried to compile the latest version of the code with Visual C++. However, it chokes on line 1637 of InsetMathGrid.cpp: 
> 
> error C3861: 'uint': identifier not found
> 
> Here is my (simple) fix, in bold (formal patch attached): 
> pos_type ipos = pos_type(cur.pos()) > cell(i).size()
> I preferred not to commit this directly, in case other compilers do not like this version…
> <0001-Fix-compilation.patch>— 

Why these cast at all?

cur.pos() is returning a pos_type, AFAICS.

Stephan


More information about the lyx-devel mailing list