Trivial patch attached. Ok to commit?
Angus

ps, shall I wait for someone to run my fix for leaking pixmap 
icons through valgrind or just commit it anyway. (It does work 
and does cure a leak.)

A

Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v
retrieving revision 1.549
diff -u -p -r1.549 ChangeLog
--- ChangeLog	26 Sep 2002 08:57:43 -0000	1.549
+++ ChangeLog	26 Sep 2002 16:00:32 -0000
@@ -1,3 +1,7 @@
+2002-09-26  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* xscreen.h: don't #include "XWorkArea.h", forward-declare XWorkArea.
+
 2002-09-25  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* Dialogs2.C:
Index: xscreen.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/xscreen.h,v
retrieving revision 1.6
diff -u -p -r1.6 xscreen.h
--- xscreen.h	5 Sep 2002 15:14:23 -0000	1.6
+++ xscreen.h	26 Sep 2002 16:00:32 -0000
@@ -17,11 +17,10 @@
 #pragma interface
 #endif
 
-#include <X11/Xlib.h>
-
 #include "screen.h"
+#include <X11/Xlib.h> // for Pixmap, GC
 
-#include "XWorkArea.h"
+class XWorkArea;
 
 /** The class XScreen is used for the main Textbody.
     Concretely, the screen is held in a pixmap.  This pixmap is kept up to

Reply via email to