Opened 16 years ago

Closed 16 years ago

#111 closed defect (fixed)

Error on loading a previous saved tracl

Reported by: Florian Roth Owned by: Florian Roth
Priority: critical Milestone: MS1: First release (1.0.0)
Component: track Version: pre-1.0
Keywords: Cc:

Description

Derivation:

Open the demo digital course, add some tiles save override, close and open again.

Error description:

It has been occured an Error during loading the track.

Reason:

The track demo_digital uses the unknown tileset ...

Attachments (1)

loading track error.PNG (21.3 KB) - added by Florian Roth 16 years ago.
error screen shot

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by Florian Roth

Attachment: loading track error.PNG added

error screen shot

comment:1 Changed 16 years ago by Henrik Heimbuerger

Owner: changed from hheimbuerger,frohn to Henrik Heimbuerger
Status: newassigned

Looks like the saving code writes an incorrect tileset (the FQCN instead of the ID).

comment:2 Changed 16 years ago by SVN

New commit by hheimbuerger (revision [362]):
[Fix for ticket #111] Fixed bug that caused written tracks to be saved with an invalid tileset ID.

During save, a no longer existing toString() method was used to store the tileset. This caused Object's default toString() method to be invoked, which returns the FQCN.

Instead, the getId() method is now being used (which is renamed from getName(), which never actually returned a user-displayable name).

comment:3 Changed 16 years ago by Henrik Heimbuerger

Owner: changed from Henrik Heimbuerger to Florian Roth

Assigned back for testing.

comment:4 Changed 16 years ago by Florian Roth

Resolution: fixed
Status: assignedclosed

Tested for analogue and digital all works fine.

Note: See TracTickets for help on using tickets.