diff --git a/mozilla/widget/src/gtk2/nsDeviceContextSpecG.cpp b/mozilla/widget/src/gtk2/nsDeviceContextSpecG.cpp index 2fc214ab29c..19bb0cb67df 100644 --- a/mozilla/widget/src/gtk2/nsDeviceContextSpecG.cpp +++ b/mozilla/widget/src/gtk2/nsDeviceContextSpecG.cpp @@ -442,7 +442,7 @@ NS_IMETHODIMP nsDeviceContextSpecGTK::GetSurfaceForPrinter(gfxASurface **aSurfac printf("\"%s\", %d, %d\n", path, width, height); nsCOMPtr file = do_CreateInstance("@mozilla.org/file/local;1"); - nsresult rv = file->InitWithPath(NS_ConvertUTF8toUTF16(filename)); + nsresult rv = file->InitWithPath(NS_ConvertUTF8toUTF16(path)); if (NS_FAILED(rv)) return rv;