On Mon, Aug 06, 2007 at 11:38:01AM -0400, Bennett Helm wrote: > On Aug 6, 2007, at 11:18 AM, Enrico Forestieri wrote: > > > On Mon, Jul 30, 2007 at 03:10:19PM +0200, Enrico Forestieri wrote: > > > >> On Mon, Jul 30, 2007 at 08:51:39AM +0200, Stefan Schimanski wrote: > >> > >>>>> Doh! Seems that the Mac also needs using our custom facets. Please > >>>>> try > >>>>> the attached patch and let me know if it works. You'll have to > >>>>> recompile > >>>>> lyx pratically from scratch, sorry for that. > >>>> > >>>> Hmpf... better use this one, I goofed (__APPLE_ vs __APPLE__). > >>> > >>> Your patch works. I get a matrix of the given size, not only 1x1. > >> > >> I think that you should investigate whether this happens for Mac > >> in general or the problem is related to a particular gcc version. > >> After you have ascertained that, I suggest that you propose a proper > >> patch to configure.ac in order to properly not define USE_WCHAR_T > >> for Mac in the right circumstances. I am not going to do that in my > >> patch because I don't have a Mac and cannot test it. > > > > So, anyone else using a Mac can confirm that the math matrix dialog > > always produces 1x1 matrices? > > I just tested on Mac, and the first matrix I tried happened to be > 5x5, which worked. However, I can now *only* produce 5x5 matrices, > even after quitting and restarting LyX.
What happens if you apply the attached patch? -- Enrico
Index: configure.ac =================================================================== --- configure.ac (revision 19332) +++ configure.ac (working copy) @@ -393,7 +393,7 @@ int mkstemp(char*); * implements this with the help of libc, or whether it has own code * does not matter for us, because we don't use libc directly (Georg) */ -#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) +#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__) && !defined(__APPLE__) # define USE_WCHAR_T #endif
