[Libreoffice] [PATCH] Fix compilation in gtk3salnativewidgets-gtk.cxx

Lucas Baudin xapantu at gmail.com
Sun Sep 11 01:13:00 PDT 2011


Hi,

The small attached patch fixes the compilation in 
gtk3salnativewidgets-gtk.cxx, it's just a cast from long int to int.

The errors were:
/media/dev/LibreOffice/gtk3/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx:191:83: 
error: narrowing conversion of 'aClipRect.Rectangle::Left()' from 'long 
int' to 'int' inside { } [-fpermissive]
/media/dev/LibreOffice/gtk3/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx:191:83: 
error: narrowing conversion of 'aClipRect.Rectangle::Top()' from 'long 
int' to 'int' inside { } [-fpermissive]
/media/dev/LibreOffice/gtk3/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx:191:83: 
error: narrowing conversion of 'aClipRect.Rectangle::Right()' from 'long 
int' to 'int' inside { } [-fpermissive]
/media/dev/LibreOffice/gtk3/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx:191:83: 
error: narrowing conversion of 'aClipRect.Rectangle::Bottom()' from 
'long int' to 'int' inside { } [-fpermissive]

Lucas


More information about the LibreOffice mailing list