276692 get nsIGdkPixbufImage using GI(nsIImage) followed by

QI(nsIGdkPixbufImage)
r=bryner sr=dbaron
This commit is contained in:
cbiesinger@web.de
2005-04-05 21:08:04 +00:00
parent 8a5202b5aa
commit f6f50f0227
2 changed files with 10 additions and 2 deletions

View File

@@ -344,7 +344,11 @@ nsGNOMEShellService::SetShouldCheckDefaultBrowser(PRBool aShouldCheck)
static nsresult
WriteImage(const nsCString& aPath, gfxIImageFrame* aImage)
{
nsCOMPtr<nsIGdkPixbufImage> pixImg(do_GetInterface(aImage));
nsCOMPtr<nsIImage> img(do_GetInterface(aImage));
if (!img)
return NS_ERROR_NOT_AVAILABLE;
nsCOMPtr<nsIGdkPixbufImage> pixImg(do_QueryInterface(img));
if (!pixImg)
return NS_ERROR_NOT_AVAILABLE;