зеркало из https://github.com/mozilla/gecko-dev.git
Bug 114255 - need to call UpdateGC() even if we already have a GC
r=pavlov,sr=jst
This commit is contained in:
Родитель
98b8d75589
Коммит
ad192536dc
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче