From 6c24b4847c0e91adb8cc7ca2ba45a9ec5516f94f Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Thu, 2 May 2002 20:27:26 +0000 Subject: [PATCH] Bug 137694 - only create the 1-bit GC once we've created a 1-bit pixmap. r=pavlov, sr=blizzard git-svn-id: svn://10.0.0.236/trunk@120563 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/gtk/nsImageGTK.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/gfx/src/gtk/nsImageGTK.cpp b/mozilla/gfx/src/gtk/nsImageGTK.cpp index 9e545691672..3bf91acab3b 100644 --- a/mozilla/gfx/src/gtk/nsImageGTK.cpp +++ b/mozilla/gfx/src/gtk/nsImageGTK.cpp @@ -1514,10 +1514,10 @@ void nsImageGTK::CreateOffscreenPixmap(PRInt32 aWidth, PRInt32 aHeight) bitmask data are arranged left to right on the screen, low to high address in memory. */ mAlphaXImage->byte_order = MSBFirst; - } - if (!s1bitGC) - s1bitGC = gdk_gc_new(mAlphaPixmap); + if (!s1bitGC) + s1bitGC = gdk_gc_new(mAlphaPixmap); + } if (!sXbitGC) sXbitGC = gdk_gc_new(mImagePixmap);