mikaelhg/openblocks — Issue #18: Potential Load problem
Author: taweili
Created: 2012-02-25 15:57:09+00:00
State: open

I just discovered a bug in the latest openblocks which may cause problem of not being able to load a previous saved file. The problem is cause by the getNextBlockId() introduced in the WorkspaceEnvironment. The number of the nextID there is always being set to 1 when the system started. However, when a saved file are loaded, it will has its own block id that may be conflict with one of the nextID.

I have fixed the problem on my fork https://github.com/taweili/openblocks but this fork also contains some codes specific to ardublock I am working on. I can send you a pull request when I get a chance to clean up my fork. However, I think this should be addressed ASAP, especially for those who are using openblocks in their projects.