Correct a bug that be added when I correct a bug :-)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1938 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
jerl1
2002-11-14 18:54:33 +00:00
parent af61f86fcb
commit 396c9650a5
@@ -35,10 +35,11 @@ public:
GetAppInfo(&info);
if (file.SetTo(&(info.ref), B_READ_ONLY) != B_OK) return;
resource.SetTo(&file);
BPoint *origin = (BPoint*)resource.LoadResource('BPNT', "origin", &len);
BPoint *origin((BPoint*)resource.LoadResource('BPNT', "origin", &len));
if (origin == NULL)
origin = new BPoint(100.0, 100.0);
fWindows = new MidiPlayerWindow(*origin);
fWindows = new MidiPlayerWindow(BPoint(100.0, 100.0));
else
fWindows = new MidiPlayerWindow(*origin);
}
//--------------