2 /* This file is part of
3 * =================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich.
7 * Copyright 1995-2000 The LyX Team.
9 * This file Copyright 2000 Baruch Even
10 * ================================================= */
13 #pragma implementation
19 #include FORMS_H_LOCATION
21 #include "support/LAssert.h"
24 : pixmap_(0), pixmapInitialized(false)
27 LyXImage::LyXImage(Pixmap pixmap)
28 : pixmap_(pixmap), pixmapInitialized(true)
33 if (pixmapInitialized)
34 XFreePixmap(fl_get_display(), pixmap_);
38 LyXImage::getPixmap() const
40 Assert(pixmapInitialized);