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:
parent
cc4d4cd541
commit
495beef2fc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user