]> git.lyx.org Git - lyx.git/commitdiff
Small clean-up
authorAngus Leeming <leeming@lyx.org>
Fri, 21 Sep 2001 16:24:28 +0000 (16:24 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 21 Sep 2001 16:24:28 +0000 (16:24 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2787 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/ImageLoaderXPM.C

index 37e66132eec1187e94526450f71e842b25642300..f1958fc47c03529d4ea11f1b18ffeb73f95a4ea2 100644 (file)
@@ -99,7 +99,7 @@ ImageLoaderXPM::runImageLoader(string const & filename)
 
        // If setting color_key failed, then fail gracefully!
        if (color_key != 0) {
-               attrib.valuemask = attrib.valuemask | XpmColorKey;
+               attrib.valuemask |= XpmColorKey;
                attrib.color_key = color_key;
 
        } else {
@@ -110,6 +110,7 @@ ImageLoaderXPM::runImageLoader(string const & filename)
                       << endl;
        }               
 
+       // Load up the pixmap
        int status = XpmReadFileToPixmap(
                        display, 
                        XRootWindowOfScreen(screen),