From ad192536dce0b9ac976a77a473628cd04bc53643 Mon Sep 17 00:00:00 2001 From: "bbaetz%cs.mcgill.ca" Date: Sun, 9 Dec 2001 06:32:05 +0000 Subject: [PATCH] Bug 114255 - need to call UpdateGC() even if we already have a GC r=pavlov,sr=jst --- gfx/src/gtk/nsRenderingContextGTK.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gfx/src/gtk/nsRenderingContextGTK.cpp b/gfx/src/gtk/nsRenderingContextGTK.cpp index e940becd93a4..43bfa87efcf6 100644 --- a/gfx/src/gtk/nsRenderingContextGTK.cpp +++ b/gfx/src/gtk/nsRenderingContextGTK.cpp @@ -786,9 +786,8 @@ NS_IMETHODIMP nsRenderingContextGTK::CreateDrawingSurface(nsRect *aBounds, if (surf) { NS_ADDREF(surf); - if (!mGC) - UpdateGC(); - rv = surf->Init(mGC, aBounds->width, aBounds->height, aSurfFlags); + UpdateGC(); + rv = surf->Init(mGC, aBounds->width, aBounds->height, aSurfFlags); } else { rv = NS_ERROR_FAILURE; }