Correct a bug when openning just after compiling

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1917 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
jerl1 2002-11-13 19:38:45 +00:00
parent cc4d4cd541
commit 495beef2fc

View File

@ -36,6 +36,8 @@ public:
if (file.SetTo(&(info.ref), B_READ_ONLY) != B_OK) return;
resource.SetTo(&file);
BPoint *origin = (BPoint*)resource.LoadResource('BPNT', "origin", &len);
if (origin == NULL)
origin = new BPoint(100.0, 100.0);
fWindows = new MidiPlayerWindow(*origin);
}