]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/Previews.C
The free_spacing patch and fix to the mess that Rob discovered.
[lyx.git] / src / graphics / Previews.C
index c8cdb55486369cf30daa304b0c80042feeec6d47..8881df2f1a2620970c5d300d14a0251654e0beb9 100644 (file)
@@ -1,17 +1,15 @@
-/*
+/**
  *  \file Previews.C
- *  Copyright 2002 the LyX Team
- *  Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "Previews.h"
 #include "PreviewLoader.h"
 
@@ -93,11 +91,8 @@ void Previews::generateBufferPreviews(Buffer const & buffer) const
        Buffer::inset_iterator it  = buffer.inset_const_iterator_begin();
        Buffer::inset_iterator end = buffer.inset_const_iterator_end();
 
-       for (; it != end; ++it) {
-               if ((*it)->lyxCode() == Inset::MATH_CODE) {
-                       (*it)->generatePreview(ploader);
-               }
-       }
+       for (; it != end; ++it)
+               it->addPreview(ploader);
 
        ploader.startLoading();
 }