Initialize both x and y, not just y. Bug 334782, patch by Bruno 'Aqualon'

Escherl <aqualon@aquachan.de>, r+sr=roc
This commit is contained in:
bzbarsky%mit.edu 2006-09-15 19:55:09 +00:00
parent 9241f85443
commit 9e96ce4079

View File

@ -1274,7 +1274,7 @@ nsWindow::ShowMenuBar(PRBool aShow)
NS_IMETHODIMP
nsWindow::WidgetToScreen(const nsRect& aOldRect, nsRect& aNewRect)
{
gint x, y = 0;
gint x = 0, y = 0;
if (mContainer) {
gdk_window_get_root_origin(GTK_WIDGET(mContainer)->window,