Bug 114255 - need to call UpdateGC() even if we already have a GC

r=pavlov,sr=jst
This commit is contained in:
bbaetz%cs.mcgill.ca 2001-12-09 06:32:05 +00:00
Родитель 98b8d75589
Коммит ad192536dc
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -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;
}